Explorar o código

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!"
demonsome %!s(int64=3) %!d(string=hai) anos
pai
achega
50e9d9176f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/chardev.c

+ 1 - 1
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)
 {