How to find the list of processes using a particular kernel module?

前端 未结 2 820
野的像风
野的像风 2021-02-07 02:24

When I try to rmmod a module I get the error message \"Error: Module in use\" , lsmod | grep shows the count.
Is there a way that would tell

相关标签:
2条回答
  • 2021-02-07 02:50

    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.

    0 讨论(0)
  • 2021-02-07 02:50

    lsof /dev/ might help you to find the dependent process.

    0 讨论(0)
提交回复
热议问题