Skip to content

Commit

Permalink
Merge pull request #225 from visitorckw/master
Browse files Browse the repository at this point in the history
Fix typo and remove duplicated words
  • Loading branch information
jserv committed Sep 4, 2023
2 parents 0ad840d + ee617a1 commit 5fd1507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lkmpg.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ \subsection{Registering A Device}
int cdev_add(struct cdev *p, dev_t dev, unsigned count);
\end{code}

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

\subsection{Unregistering A Device}
\label{sec:unregister_device}
Expand Down Expand Up @@ -2029,7 +2029,7 @@ \section{Virtual Input Device Driver}
\section{Standardizing the interfaces: The Device Model}
\label{sec:device_model}
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.
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.
To impose some consistency such that there is at minimum a standardized way to start, suspend and resume a device model was added.
An example is shown below, and you can use this as a template to add your own suspend, resume or other interface functions.

\samplec{examples/devicemodel.c}
Expand Down

0 comments on commit 5fd1507

Please sign in to comment.