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); }
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); }
void scull_release_20(struct inode *ino, struct file *f) { scull_release(ino, f); }