You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lkmpg.tex
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -513,7 +513,7 @@ \subsection{Passing Command Line Arguments to a Module}
513
513
module_param_array(myshortarray, short, &count, 0); /* put count into "count" variable */
514
514
\end{code}
515
515
516
-
A good use for this is to have the module variable's default values set, like an port or IO address.
516
+
A good use for this is to have the module variable's default values set, like a port or IO address.
517
517
If the variables contain the default values, then perform autodetection (explained elsewhere). Otherwise, keep the current value.
518
518
This will be made clear later on.
519
519
@@ -642,7 +642,7 @@ \subsection{Building modules for a precompiled kernel}
642
642
Let's focus again on the previous error message: a closer look at the version magic strings suggests that, even with two configuration files which are exactly the same, a slight difference in the version magic could be possible, and it is sufficient to prevent insertion of the module into the kernel.
643
643
That slight difference, namely the custom string which appears in the module's version magic and not in the kernel's one, is due to a modification with respect to the original, in the makefile that some distributions include.
644
644
Then, examine your \verb|Makefile|, and make sure that the specified version information matches exactly the one used for your current kernel.
645
-
For example, you makefile could start as follows:
645
+
For example, your makefile could start as follows:
646
646
647
647
\begin{verbatim}
648
648
VERSION = 5
@@ -756,7 +756,7 @@ \subsection{User Space vs Kernel Space}
756
756
Recall the discussion about library functions vs system calls.
757
757
Typically, you use a library function in user mode.
758
758
The library function calls one or more system calls, and these system calls execute on the library function's behalf, but do so in supervisor mode since they are part of the kernel itself.
759
-
Once the system call completes its task, it returns and execution gets transfered back to user mode.
759
+
Once the system call completes its task, it returns and execution gets transferred back to user mode.
0 commit comments