Created
November 19, 2010 17:08
-
-
Save kerie/706799 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static ssize_t rwbuf_read(struct file* filp, char *buf , size_t count, loff_t *ppos) | |
{ | |
printk(KERN_ALERT "read\n"); | |
count=rwlen; | |
copy_to_user(buf,rwbuf,count); | |
printk(KERN_ALERT "read ok\n"); | |
return count; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment