Linux Kernel Modules. Kernel modules are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system. … This saves time and prevents the possibility of introducing an error in rebuilding and reinstalling the base kernel.
How do loadable kernel modules work?
In computing, a loadable kernel module (LKM) is an object file that contains code to extend the running kernel, or so-called base kernel, of an operating system. … When the functionality provided by an LKM is no longer required, it can be unloaded in order to free memory and other resources.
What is the basic idea of Linux kernel module?
A Linux kernel module is a piece of compiled binary code that is inserted directly into the Linux kernel, running at ring 0, the lowest and least protected ring of execution in the x86–64 processor. Code here runs completely unchecked but operates at incredible speed and has access to everything in the system.