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!"
This commit is contained in:
demonsome 2021-07-31 23:03:16 +08:00 committed by GitHub
parent a4af7b5e5a
commit 50e9d9176f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ void cleanup_module(void)
/* /*
* Called when a process tries to open the device file, like * 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) static int device_open(struct inode *inode, struct file *file)
{ {