Is there a way to figure out what is using a Linux kernel module?

前端 未结 7 892
無奈伤痛
無奈伤痛 2020-12-12 12:40

If I load a kernel module and list the loaded modules with lsmod, I can get the \"use count\" of the module (number of other modules with a reference to the mod

7条回答
  •  情话喂你
    2020-12-12 12:55

    For anyone desperate to figure out why they can't reload modules, I was able to work around this problem by

    • Getting the path of the currently used module using "modinfo"
    • rm -rfing it
    • Copying the new module I wanted to load to the path it was in
    • Typing "modprobe DRIVER_NAME.ko".

提交回复
热议问题