We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 031b9d2 + be16ad6 commit 7bcc4fbCopy full SHA for 7bcc4fb
lkmpg.tex
@@ -1346,14 +1346,14 @@ \section{sysfs: Interacting with your module}
1346
What is the current value of \cpp|myvariable| ?
1347
1348
\begin{codebash}
1349
-cat /sys/kernel/mymodule/myvariable
+sudo cat /sys/kernel/mymodule/myvariable
1350
\end{codebash}
1351
1352
Set the value of \cpp|myvariable| and check that it changed.
1353
1354
1355
-echo "32" > /sys/kernel/mymodule/myvariable
1356
+echo "32" | sudo tee /sys/kernel/mymodule/myvariable
1357
1358
1359
Finally, remove the test module:
0 commit comments