Skip to content

Commit 0a27a01

Browse files
authored
Fix typo (#257)
1 parent 0d43408 commit 0a27a01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lkmpg.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ \subsection{How modules begin and end}
716716
informing the kernel of the module's functionalities and preparing the kernel to utilize the module's functions when necessary.
717717
After performing these tasks, the entry function returns, and the module remains inactive until the kernel requires its code.
718718

719-
All modules conclude by invoking either \cpp|cleanup_module| or a function specified through the \cpp|module_exit |call.
719+
All modules conclude by invoking either \cpp|cleanup_module| or a function specified through the \cpp|module_exit| call.
720720
This serves as the module's exit function, reversing the actions of the entry function by unregistering the previously registered functionalities.
721721

722722
It is mandatory for every module to have both an entry and an exit function.
@@ -729,7 +729,7 @@ \subsection{Functions available to modules}
729729
Programmers use functions they do not define all the time.
730730
A prime example of this is \cpp|printf()|.
731731
You use these library functions which are provided by the standard C library, libc.
732-
The definitions for these functions do not actually enter your program until the linking stage, which insures that the code (for \cpp|printf()| for example) is available, and fixes the call instruction to point to that code.
732+
The definitions for these functions do not actually enter your program until the linking stage, which ensures that the code (for \cpp|printf()| for example) is available, and fixes the call instruction to point to that code.
733733

734734
Kernel modules are different here, too. In the hello world example, you might have noticed that we used a function, \cpp|pr_info()| but did not include a standard I/O library.
735735
That is because modules are object files whose symbols get resolved upon running \sh|insmod| or \sh|modprobe|.

0 commit comments

Comments
 (0)