Notes about the usage of Linux kernel modules
1. 指令
modinfomodprobeinsmodrmmodlsmoddepmod
2. 文件
modprobe.dmodules.depmodules-load.d
3. 功能
详情请参考archlinux Kernel module。
- Obtaining information
- Automatic module loading with systemd
- Manual module handling
- Setting module options(pass a parameter to a kernel module)
- Manually at load time using modprobe
- Using files in /etc/modprobe.d/
- Using kernel command line
- Blacklisting
- Using files in /etc/modprobe.d/
- Using kernel command line
- modprobe.blacklist=MODULE_NAME
4. tips
modprobeuses modules.dep to translate module names into module locations and get dependency relationship.depmodgenerates modules.dep and map files.insmodyour module by providing a fully qualified path to the .ko file.insmoddoesn’t do any dependency checking.
参考资料: