Skip to content

Instantly share code, notes, and snippets.

@kerie
Created November 19, 2010 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerie/706799 to your computer and use it in GitHub Desktop.
Save kerie/706799 to your computer and use it in GitHub Desktop.
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