Skip to content

Commit 5fd1507

Browse files
authored
Merge pull request #225 from visitorckw/master
Fix typo and remove duplicated words
2 parents 0ad840d + ee617a1 commit 5fd1507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lkmpg.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ \subsection{Registering A Device}
10661066
int cdev_add(struct cdev *p, dev_t dev, unsigned count);
10671067
\end{code}
10681068

1069-
To find a example using the interface, you can see \verb|ioctl.c| described in section \ref{sec:device_files}.
1069+
To find an example using the interface, you can see \verb|ioctl.c| described in section \ref{sec:device_files}.
10701070

10711071
\subsection{Unregistering A Device}
10721072
\label{sec:unregister_device}
@@ -2029,7 +2029,7 @@ \section{Virtual Input Device Driver}
20292029
\section{Standardizing the interfaces: The Device Model}
20302030
\label{sec:device_model}
20312031
Up to this point we have seen all kinds of modules doing all kinds of things, but there was no consistency in their interfaces with the rest of the kernel.
2032-
To impose some consistency such that there is at minimum a standardized way to start, suspend and resume a device a device model was added.
2032+
To impose some consistency such that there is at minimum a standardized way to start, suspend and resume a device model was added.
20332033
An example is shown below, and you can use this as a template to add your own suspend, resume or other interface functions.
20342034

20352035
\samplec{examples/devicemodel.c}

0 commit comments

Comments
 (0)