From 50e9d9176f330024f6e96b95f90088397ea75400 Mon Sep 17 00:00:00 2001 From: demonsome Date: Sat, 31 Jul 2021 23:03:16 +0800 Subject: [PATCH] chardev: Revise comment on device node (#23) The device file create in this example is "chardev". So input command "sudo cat /dev/chardev" will get a valid message "I already told you %d times Hello world!" --- examples/chardev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chardev.c b/examples/chardev.c index 8d901b8..e62edb9 100644 --- a/examples/chardev.c +++ b/examples/chardev.c @@ -86,7 +86,7 @@ void cleanup_module(void) /* * Called when a process tries to open the device file, like - * "cat /dev/mycharfile" + * "sudo cat /dev/chardev" */ static int device_open(struct inode *inode, struct file *file) {