Commit c994db5
committed
Clarify write usage in comment for /dev/chardev
The original comment referred to /dev/hello, but the actual device
created by the module is /dev/chardev.
In addition, writing to /dev/chardev using output redirection (>)
typically fails due to insufficient permissions, since redirection is
handled by the shell before sudo applies. As a result, the
device_write() function may never be entered.
This change updates the comment to recommend using a pipe with
`sudo tee`, which correctly elevates privileges and allows the write
operation to reach the driver.1 parent 42d1e00 commit c994db5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments