查看ko文件信息:
bash
modinfo xxx.ko
查看已安装的模块信息:
bash
ls -lh /sys/module/<模块名>/*
查看系统已安装的模块列表:
bash
lsmod
查看模块间的引用情况:
bash
cat /proc/modules
cat /lib/modules/$(uname -r)/modules.dep
查看模块设备被哪些进程使用:
bash
lsof /dev/<模块设备名>
查看模块设备被进程打开的句柄列表:
bash
lsof | head -1 && lsof | grep <模块设备名>
安装模块:
bash
insmod <模块文件路径>
卸载模块:
bash
rmmod <模块名>
--end--