Size: 929
Comment: converted to 1.6 markup
|
← Revision 9 as of 2021-01-14 19:37:03 ⇥
Size: 1001
Comment: differentiate between builtin and loadable modules
|
Deletions are marked like this. | Additions are marked like this. |
Line 7: | Line 7: |
* Modules can either be "tightly bound" to the kernel, as part of the linux image, or they can be "loosely bound" and added later, however they all must conform to the standard Linux module interface. | * Modules can either be "tightly bound" to the kernel (builtin), as part of the Linux image, or they can be "loosely bound" (loadable kernel module, and added later), however they all must conform to the standard Linux module interface. |
Line 9: | Line 9: |
* Modules can be added and removed without restarting the operating system. | * Modules (loadable ones, not builtin ones) can be added and removed without restarting the operating system. |
Line 12: | Line 12: |
Device Drivers are special modules that provide one or more files in the ''/dev'' filesystem. It provides an interface between application and the below underlying hardware in a system. | Device Drivers are special modules that provide one or more files in the ''/dev'' filesystem. They provide an interface between applications and the below underlying hardware in a system. |
Definition
A module is a set of software that is not part of the core kernel yet can be integrated with it through the kernel kbuild procedure or at runtime. Modules always operate in "kernel space."
Properties
Some properties of all kernel modules:
- Modules can either be "tightly bound" to the kernel (builtin), as part of the Linux image, or they can be "loosely bound" (loadable kernel module, and added later), however they all must conform to the standard Linux module interface.
- Modules are limited to using kernel-provided functions and types. For example they cannot use GNU C-library calls, since the C-Libraries are user-space libraries.
- Modules (loadable ones, not builtin ones) can be added and removed without restarting the operating system.
Device Drivers
Device Drivers are special modules that provide one or more files in the /dev filesystem. They provide an interface between applications and the below underlying hardware in a system.