Skip to content

Commit 19521bc

Browse files
committed
Refine wording on module loading
Close #134
1 parent 356723c commit 19521bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lkmpg.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ \subsection{Functions available to modules}
704704
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.
705705

706706
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.
707-
That is because modules are object files whose symbols get resolved upon \sh|insmod|'ing.
707+
That is because modules are object files whose symbols get resolved upon running \sh|insmod| or \sh|modprobe|.
708708
The definition for the symbols comes from the kernel itself; the only external functions you can use are the ones provided by the kernel.
709709
If you're curious about what symbols have been exported by your kernel, take a look at \verb|/proc/kallsyms|.
710710

0 commit comments

Comments
 (0)