Skip to content

Commit 24257e8

Browse files
authored
Typo.
1 parent 09e636c commit 24257e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lkmpg.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ \subsection{Registering A Device}
869869
int register_chrdev(unsigned int major, const char *name, struct file_operations *fops);
870870
\end{code}
871871

872-
where unsigned int major is the major number you want to request, \cpp|const char *name| is the name of the device as it will appear in \verb|/proc/devices| and \cpp|struct file_operations *fops| is a pointer to the \cpp|file_operations| table for your driver.
872+
Where unsigned int major is the major number you want to request, \cpp|const char *name| is the name of the device as it will appear in \verb|/proc/devices| and \cpp|struct file_operations *fops| is a pointer to the \cpp|file_operations| table for your driver.
873873
A negative return value means the registration failed. Note that we didn't pass the minor number to \cpp|register_chrdev|.
874874
That is because the kernel doesn't care about the minor number; only our driver uses it.
875875

0 commit comments

Comments
 (0)