Skip to content

Commit 9892214

Browse files
authored
Fix typo (line 1019) (#174)
Changed "The choose of two different functions depend on whether ..." to "The choice between two different functions depends on whether ..."
1 parent b950a10 commit 9892214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lkmpg.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ \subsection{Registering A Device}
10161016
int alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count, const char *name);
10171017
\end{code}
10181018

1019-
The choose of two different functions depend on whether you know the major numbers for your device.
1019+
The choice between two different functions depends on whether you know the major numbers for your device.
10201020
Using \cpp|register_chrdev_region| if you know the device major number and \cpp|alloc_chrdev_region| if you would like to allocate a dynamicly-allocated major number.
10211021

10221022
Second, we should initialize the data structure \cpp|struct cdev| for our char device and associate it with the device numbers.

0 commit comments

Comments
 (0)