在Linux设备驱动程序中

发布于 2025-02-13 01:55:35 字数 194 浏览 0 评论 0原文

我想知道从用户空间发出powerOff时,在Linux设备驱动程序中被调用了哪些回调。驱动程序是作为外部模块构建的。 对于暂停 /简历,我们有struct dev_pm_ops < / code>方法。 从用户空间发出/code> shutdown 命令时,是否有任何方法/回调可以注册以进行调用?

I would like to know what callback gets called in Linux device drivers when issuing poweroff from user space. The driver is built as external module.
For suspend / resume we have struct dev_pm_ops methods.
Is there any method/callback that could be registered for getting called when issuing poweroff/shutdown command from user space?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文