Skip to content

Commit 42155aa

Browse files
committed
Refine the writing
1 parent abe3b8f commit 42155aa

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/hello-1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ int init_module(void)
88
{
99
pr_info("Hello world 1.\n");
1010

11-
/* A non 0 return means init_module failed; module can't be loaded. */
11+
/* A nonzero return means init_module failed; module can't be loaded. */
1212
return 0;
1313
}
1414

lkmpg.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
\section{Introduction}
6464
\label{sec:introduction}
65-
The Linux Kernel Module Programming Guide is a free book; you may reproduce and/or modify it under the terms of the \href{https://opensource.org/licenses/OSL-3.0}{Open Software License}, version 3.0.
65+
The Linux Kernel Module Programming Guide is a free book; you may reproduce or modify it under the terms of the \href{https://opensource.org/licenses/OSL-3.0}{Open Software License}, version 3.0.
6666

6767
This book is distributed in the hope that it would be useful, but without any warranty, without even the implied warranty of merchantability or fitness for a particular purpose.
6868

@@ -74,7 +74,7 @@ \section{Introduction}
7474
Please make revisions and updates available directly to the document maintainer, Jim Huang <jserv@ccns.ncku.edu.tw>.
7575
This will allow for the merging of updates and provide consistent revisions to the Linux community.
7676

77-
If you publish or distribute this book commercially, donations, royalties, and/or printed copies are greatly appreciated by the author and the \href{https://tldp.org/}{Linux Documentation Project} (LDP).
77+
If you publish or distribute this book commercially, donations, royalties, or printed copies are greatly appreciated by the author and the \href{https://tldp.org/}{Linux Documentation Project} (LDP).
7878
Contributing in this way shows your support for free software and the LDP. If you have questions or comments, please contact the address above.
7979

8080
\subsection{Authorship}
@@ -186,9 +186,9 @@ \subsection{Before We Begin}
186186
Certain Linux distributions even ship with the default Linux kernel configured to support SecureBoot.
187187
In these cases, the kernel module necessitates a signed security key.
188188

189-
Failing this, an attempt to insert your first ``hello world'' module would result in the message: ``\emph{ERROR: could not insert module}''.
190-
If this message \emph{Lockdown: insmod: unsigned module loading is restricted;
191-
see man kernel lockdown.7} appears in the \sh|dmesg| output,
189+
Failing that, an attempt to insert your first ``hello world'' module would result in the message: ``\emph{ERROR: could not insert module}''.
190+
If this message ``\emph{Lockdown: insmod: unsigned module loading is restricted;
191+
see man kernel lockdown.7}'' appears in the \sh|dmesg| output,
192192
the simplest approach involves disabling UEFI SecureBoot from the boot menu of your PC or laptop,
193193
allowing the successful insertion of ``hello world'' module.
194194
Naturally, an alternative involves undergoing intricate procedures such as generating keys, system key installation,
@@ -1004,7 +1004,7 @@ \subsection{The file structure}
10041004
Resist the temptation.
10051005

10061006
Go ahead and look at the definition of file.
1007-
Most of the entries you see, like struct dentry are not used by device drivers, and you can ignore them.
1007+
Most of the entries you see, like struct dentry, are not used by device drivers, and you can ignore them.
10081008
This is because drivers do not fill file directly; they only use structures contained in file which are created elsewhere.
10091009

10101010
\subsection{Registering A Device}

0 commit comments

Comments
 (0)