When I try to rmmod a module I get the error message "Error: Module in use" , lsmod | grep <module name>
shows the count.
Is there a way that would tell me which processes are using this particular kernel module/driver?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
This was asked before, but there was no great answer, probably because there is no good way to accomplish to find what is using what.
The best suggestion is to dmesg
and look for any indication of what loaded the module.
You might also try using the --force
parameter to rmmod
in case your kernel was built with support for it.
回答2:
lsof /dev/ might help you to find the dependent process.