Browse Source

Merge pull request #225 from visitorckw/master

Fix typo and remove duplicated words
Jim Huang 1 year ago
parent
commit
5fd15075f2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lkmpg.tex

+ 2 - 2
lkmpg.tex

@@ -1066,7 +1066,7 @@ Once we finish the initialization, we can add the char device to the system by u
 int cdev_add(struct cdev *p, dev_t dev, unsigned count);
 int cdev_add(struct cdev *p, dev_t dev, unsigned count);
 \end{code}
 \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}
 \subsection{Unregistering A Device}
 \label{sec:unregister_device}
 \label{sec:unregister_device}
@@ -2029,7 +2029,7 @@ echo "-34" | sudo tee /dev/vinput0
 \section{Standardizing the interfaces: The Device Model}
 \section{Standardizing the interfaces: The Device Model}
 \label{sec: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.
 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.
 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}
 \samplec{examples/devicemodel.c}