You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lkmpg.tex
+1-1
Original file line number
Diff line number
Diff line change
@@ -1052,7 +1052,7 @@ \subsection{Registering A Device}
1052
1052
\end{code}
1053
1053
1054
1054
The choice between two different functions depends on whether you know the major numbers for your device.
1055
-
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.
1055
+
Using \cpp|register_chrdev_region| if you know the device major number and \cpp|alloc_chrdev_region| if you would like to allocate a dynamically-allocated major number.
1056
1056
1057
1057
Second, we should initialize the data structure \cpp|struct cdev| for our char device and associate it with the device numbers.
1058
1058
To initialize the \cpp|struct cdev|, we can achieve by the similar sequence of the following codes.
0 commit comments