diff --git a/index.html b/index.html index 314698a..3c00040 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,7 @@
device_create
@@ -1599,7 +1599,7 @@ with a pointer to the disk location or locations where the file’s data can be
found.
Because we don’t get called when the file is opened or closed, there’s nowhere for
us to put try_module_get
-
and try_module_put
+
and module_put
in this module, and if the file is opened and then the module is removed, there’s no
way to avoid the consequences.
Here a simple example showing how to use a /proc file. This is the HelloWorld for
diff --git a/lkmpg-for-ht.html b/lkmpg-for-ht.html
index 314698a..3c00040 100644
--- a/lkmpg-for-ht.html
+++ b/lkmpg-for-ht.html
@@ -17,7 +17,7 @@
The Linux Kernel Module Programming Guide
-August 12, 2021
+August 16, 2021
@@ -1339,7 +1339,7 @@ this. First, the driver itself can print the newly assigned number and we
can make the device file by hand. Second, the newly registered device will
have an entry in /proc/devices, and we can either make the device file by
hand or write a shell script to read the file in and make the device file. The
-third method is we can have our driver make the the device file using the
+third method is that we can have our driver make the device file using the
device_create
@@ -1599,7 +1599,7 @@ with a pointer to the disk location or locations where the file’s data can be
found.
Because we don’t get called when the file is opened or closed, there’s nowhere for
us to put try_module_get
-
and try_module_put
+
and module_put
in this module, and if the file is opened and then the module is removed, there’s no
way to avoid the consequences.
Here a simple example showing how to use a /proc file. This is the HelloWorld for