From d45485f637c156bafb758923919e7b1374b8b8a9 Mon Sep 17 00:00:00 2001 From: Kuan-Wei Chiu Date: Mon, 4 Sep 2023 04:53:07 +0800 Subject: [PATCH 1/2] Remove duplicated words --- lkmpg.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lkmpg.tex b/lkmpg.tex index d8a09aa0..397513ed 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -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} From ee617a1e53c72a5d5f82cd631e60ebfc7a9c26cb Mon Sep 17 00:00:00 2001 From: Kuan-Wei Chiu Date: Mon, 4 Sep 2023 04:58:31 +0800 Subject: [PATCH 2/2] Fix typo --- lkmpg.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lkmpg.tex b/lkmpg.tex index 397513ed..58ba1e16 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -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}