void thread1() { file filp; char buf; size_t count = 10; loff_t off = 0; scull_open(tid1, i, filp); scull_read(tid1, filp, buf, count, off); scull_release(i, filp); }
int scull_read_20(struct inode *ino, struct file *f, char *buf, int count) { return (int)scull_read(f, buf, count, &f->f_pos); }