Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Fix "dynamicly" to "dynamically".
  • Loading branch information
vax-r committed Jan 30, 2024
1 parent 470fbcd commit 7a5a1a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lkmpg.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ \subsection{Registering A Device}
\end{code}

The choice between two different functions depends on whether you know the major numbers for your device.
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.
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.

Second, we should initialize the data structure \cpp|struct cdev| for our char device and associate it with the device numbers.
To initialize the \cpp|struct cdev|, we can achieve by the similar sequence of the following codes.
Expand Down

0 comments on commit 7a5a1a9

Please sign in to comment.