void thread2() { file filp; char buf; size_t count = 10; loff_t off = 0; scull_open(tid2, i, filp); scull_write(tid2, filp, buf, count, off); scull_release(i, filp); }
int scull_write_20(struct inode *ino, struct file *f, const char *b, int c) { return (int)scull_write(f, b, c, &f->f_pos); }