Skip to content

Commit e6e8e48

Browse files
committed
Proofread
1 parent 1ab94aa commit e6e8e48

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

lkmpg.tex

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,16 @@ \subsection{Acknowledgements}
100100
\subsection{What Is A Kernel Module?}
101101
\label{sec:kernelmod}
102102

103-
So, you want to write a kernel module.
104-
You know C, you have written a few normal programs to run as processes, and now you want to get to where the real action is, to where a single wild pointer can wipe out your file system and a core dump means a reboot.
105-
106-
What exactly is a kernel module?
107-
Modules are pieces of code that can be loaded and unloaded into the kernel upon demand.
108-
They extend the functionality of the kernel without the need to reboot the system.
109-
For example, one type of module is the device driver, which allows the kernel to access hardware connected to the system.
110-
Without modules, we would have to build monolithic kernels and add new functionality directly into the kernel image.
111-
Besides having larger kernels, this has the disadvantage of requiring us to rebuild and reboot the kernel every time we want new functionality.
103+
Interest in the development of kernel modules involves a background in the C programming language and a record of creating conventional programs designed for process execution.
104+
This endeavor delves into a realm where an unchecked pointer, if left unattended,
105+
could potentially cause the complete erasure of an entire file system,
106+
leading to an event that prompts a complete system reboot.
107+
108+
Precisely defined, a kernel module refers to a segment of code that possesses the ability to be dynamically loaded and unloaded within the kernel according to necessity.
109+
Such modules elevate kernel capabilities without the imposition of a system reboot requirement.
110+
A notable instance is observed in the device driver module, which serves to facilitate the interaction of the kernel with the hardware components attached to the system.
111+
In the absence of modules, the prevailing approach leans toward monolithic kernels, necessitating the direct integration of novel functionalities into the kernel image.
112+
This approach not only contributes to the generation of larger kernels but also mandates the undertaking of kernel rebuilding and subsequent system rebooting whenever a desired addition of functionality arises.
112113

113114
\subsection{Kernel module package}
114115
\label{sec:packages}

0 commit comments

Comments
 (0)