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

前端 未结 7 900
無奈伤痛
無奈伤痛 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 13:11

    All you get are a list of which modules depend on which other modules (the Used by column in lsmod). You can't write a program to tell why the module was loaded, if it is still needed for anything, or what might break if you unload it and everything that depends on it.

提交回复
热议问题