Added read function.
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Wed, 19 May 2010 15:36:22 +0000 (11:36 -0400)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Wed, 19 May 2010 15:36:22 +0000 (11:36 -0400)
hellochar.c

index 9d4e40a..e49565c 100644 (file)
@@ -32,9 +32,16 @@ static int hello_open(struct inode *ino, struct file *fp)
        return 0;
 }
 
+static ssize_t hello_read(struct file *fp, char __user *buf, size_t sz,
+       loff_t *pos)
+{
+       return 0;
+}
+
 static const struct file_operations hello_fops = {
        .owner = THIS_MODULE,
        .open = hello_open,
+       .read = hello_read,
 };
 
 static int __init ch_init(void)