mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-22 09:02:10 +08: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:
parent
a4af7b5e5a
commit
50e9d9176f
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user