Kernel modules — The Linux Kernel documentation
A monolithic kernel, though faster than a microkernel, has the disadvantage of lack of modularity and extensibility. On modern monolithic kernels, this has been solved by using kernel modules. A kernel module (or loadable kernel mode) is an object file that contains code that can extend the kernel functionality at runtime (it is loaded as needed); When a kernel module is no longer needed, it can be unloaded. Most of the device drivers are used in the form of kernel modules. For the development of Linux device drivers, it is recommended to download the kernel sources, configure and compile them and then install the compiled version on the test /development tool machine. Below is a very simple example of a kernel module. When loading into the kernel, it will generate the message "Hi". When unloading the kernel module, the "Bye" message will be generated. The generated messages will not be displayed on the console but will be saved in a specially reserved memory area for this, from where
Kernel modules - The Linux Kernel documentation Kernel modules View page source Kernel modules ¶ Lab objectives ¶ creating simple modules describing the process of kernel module compilation presenting how a module can be used with a kernel simple kernel debugging methods Kernel Modules Overview ¶ A monolithic kernel, though faster than a microkernel, has the disadvantage of lack of modularity and extensibility. On modern monolithic kernels, this has been solved by using kernel modules. A kernel module (or loadable kernel mode) is an object file that contains code that can extend the kernel fun
Explore this link on the map →saved by
related reading
- User Mode Linux HOWTO - The Linux Kernel documentationkernel.org
- The Linux Kernel Module Programming Guidesysprog21.github.io
- The little book about OS developmentlittleosbook.github.io
- The "Basics" | Putting the "You" in CPUcpu.land
- Assessing Claude Mythos Preview’s cybersecurity capabilities \ Anthropicred.anthropic.com
- cs140e-24win/labs/13-ss-equiv/README.md at main · dddrrreee/cs140e-24win · GitHubgithub.com
- Writing an OS in Rustos.phil-opp.com
- 9. Kaleidoscope: Adding Debug Information — LLVM 23.0.0git documentationllvm.org
- Direct Rendering Manager - Wikipediaen.wikipedia.org
- FirstKernelPatch - Linux Kernel Newbieskernelnewbies.org
- OS 202 Class Notescs.nyu.edu
- GPU Driver Developer’s Guide — The Linux Kernel documentationdocs.kernel.org