diff --git a/index.html b/index.html index 72066689..b6e5ffdf 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@
Make and install the module:
-
1make -2sudo insmod hello-sysfs.ko+
1make +2sudo insmod hello-sysfs.ko
Check that it exists:
-
1sudo lsmod | grep hello_sysfs+
1sudo lsmod | grep hello_sysfs
What is the current value of myvariable
?
-
1sudo cat /sys/kernel/mymodule/myvariable+
1sudo cat /sys/kernel/mymodule/myvariable
Set the value of myvariable
and check that it changed.
-
1echo "32" | sudo tee /sys/kernel/mymodule/myvariable -2sudo cat /sys/kernel/mymodule/myvariable+
1echo "32" | sudo tee /sys/kernel/mymodule/myvariable +2sudo cat /sys/kernel/mymodule/myvariable
Finally, remove the test module:
-
1sudo rmmod hello_sysfs+
1sudo rmmod hello_sysfsdiff --git a/lkmpg-for-ht.html b/lkmpg-for-ht.html index 72066689..b6e5ffdf 100644 --- a/lkmpg-for-ht.html +++ b/lkmpg-for-ht.html @@ -18,7 +18,7 @@
Make and install the module:
-
1make -2sudo insmod hello-sysfs.ko+
1make +2sudo insmod hello-sysfs.ko
Check that it exists:
-
1sudo lsmod | grep hello_sysfs+
1sudo lsmod | grep hello_sysfs
What is the current value of myvariable
?
-
1sudo cat /sys/kernel/mymodule/myvariable+
1sudo cat /sys/kernel/mymodule/myvariable
Set the value of myvariable
and check that it changed.
-
1echo "32" | sudo tee /sys/kernel/mymodule/myvariable -2sudo cat /sys/kernel/mymodule/myvariable+
1echo "32" | sudo tee /sys/kernel/mymodule/myvariable +2sudo cat /sys/kernel/mymodule/myvariable
Finally, remove the test module:
-
1sudo rmmod hello_sysfs+
1sudo rmmod hello_sysfs