跳转至

内核模块

路径

Text Only
1
2
## 系统上所有内核模块路径
/lib/modules/${uname -r}

已加载模块

Bash
1
2
3
4
##显示已经加载的内核模块
lsmod
#或者
cat /proc/modules

添加移除内核模块

Bash
1
2
3
4
##添加
modprobe xxx
##移除
modprobe -r xxx

安装模块

Bash
1
insmod xxx

卸载模块

Bash
1
rmmod xxx

跟新模块间依赖

Bash
1
depmod