From: Johan Calle <43998967+jcallemc@users.noreply.github.com> Date: Mon, 24 Oct 2022 13:52:05 +0000 (+0900) Subject: Fix typo (line 1019) (#174) X-Git-Tag: latest~47 X-Git-Url: https://www.ivnss.com/gitweb/?a=commitdiff_plain;h=98922147643be3a1b7e66c504a5fccbad32684d4;p=lkmpg 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 ..." --- diff --git a/lkmpg.tex b/lkmpg.tex index 6cae6d5..eb2d500 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -1016,7 +1016,7 @@ int register_chrdev_region(dev_t from, unsigned count, const char *name); int alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count, const char *name); \end{code} -The choose of two different functions depend on whether you know the major numbers for your device. +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. Second, we should initialize the data structure \cpp|struct cdev| for our char device and associate it with the device numbers.