Introduction to a kernel module
Some of the functional modularity is the idea of micro-core, where the modularity is mainly to reduce the size of the kernel, and depending on the host can allow users to customize the loading module, to facilitate the less common hardware driver to get loaded without wasting space
The directory for general storage modules is/lib/modules/$ (uname R)/kernel
Two commands of the management module
Lsmod: Lists the currently loaded modules, containing dependencies
Modinfo mod_name: Display Module details
Manually loading the module, there may be a dependency limit
Insmod/module/about/path understood as insert MODULE, you need to specify the path
Rmmod mod_name Delete a module
Automatic Processing dependencies:
Modprobe mod_name automatically loads a module, ensuring that the service script exists in the/etc/init.d/* corresponding directory
modprobe r mod_name Delete a module
Linux kernel modules