我正在使用Ubuntu,我找不到/sbin/hotplug。有什么东西能取代它吗?
它如何处理热插拔?我读到内核调用它是为了在热插拔事件发生时通知用户空间。我也检查了/proc/sys/kernel/hotplug,但它是空的
发布于 2014-07-28 18:54:34
从https://www.kernel.org/doc/pending/hotplug.txt我们可以读到:
... Linux provides two interfaces to hotplug; the kernel can spawn a usermode
helper process, or it can send a message to an existing daemon listening to a
netlink socket.以及:
It's possible to disable the usermode helper hotplug mechanism 
(by writing an empty string into /proc/sys/kernel/hotplug)...因此,如果您的/proc/sys/kernel/hotplug是空的,这意味着您/ubuntu没有使用“用户模式助手热插拔机制”。
相反,udev作为旧的‘用户模式助手热插拔机制’的“后继者”,侦听netlink套接字,并得到内核关于热插拔事件的通知。
我希望这能帮到你。
https://askubuntu.com/questions/489493
复制相似问题