1
0
mirror of https://github.com/sysprog21/lkmpg.git synced 2021-08-03 01:33:29 +03:00

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

View File

@@ -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)
{