Skip to content

Commit 356723c

Browse files
authored
Merge pull request #141 from steven1lung/master
Fix grammar and typo
2 parents ef2939e + d771c50 commit 356723c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/hello-5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ MODULE_PARM_DESC(mystring, "A character string");
3434
/* module_param_array(name, type, num, perm);
3535
* The first param is the parameter's (in this case the array's) name.
3636
* The second param is the data type of the elements of the array.
37-
* The third argument is a pointer to the variable that will store the number.
37+
* The third argument is a pointer to the variable that will store the number
3838
* of elements of the array initialized by the user at module loading time.
3939
* The fourth argument is the permission bits.
4040
*/

lkmpg.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ \subsection{Passing Command Line Arguments to a Module}
513513
module_param_array(myshortarray, short, &count, 0); /* put count into "count" variable */
514514
\end{code}
515515

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.
517517
If the variables contain the default values, then perform autodetection (explained elsewhere). Otherwise, keep the current value.
518518
This will be made clear later on.
519519

@@ -642,7 +642,7 @@ \subsection{Building modules for a precompiled kernel}
642642
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.
643643
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.
644644
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:
646646

647647
\begin{verbatim}
648648
VERSION = 5
@@ -756,7 +756,7 @@ \subsection{User Space vs Kernel Space}
756756
Recall the discussion about library functions vs system calls.
757757
Typically, you use a library function in user mode.
758758
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.
760760

761761
\subsection{Name Space}
762762
\label{sec:namespace}

0 commit comments

Comments
 (0)