Skip to content

Commit 7a9112b

Browse files
authored
Merge pull request #326 from minhsun-c/chardev-write
Clarify write usage in comment for /dev/chardev
2 parents 42d1e00 + c994db5 commit 7a9112b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/chardev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static ssize_t device_read(struct file *filp, /* see include/linux/fs.h */
152152
return bytes_read;
153153
}
154154

155-
/* Called when a process writes to dev file: echo "hi" > /dev/hello */
155+
/* Called when a process writes to dev file: echo "hi" | sudo tee /dev/chardev */
156156
static ssize_t device_write(struct file *filp, const char __user *buff,
157157
size_t len, loff_t *off)
158158
{

0 commit comments

Comments
 (0)