コード例 #1
0
ファイル: scull.c プロジェクト: ssvlab/esbmc-gpu
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);
}
コード例 #2
0
ファイル: main.c プロジェクト: dot-Sean/linux_drivers
int scull_read_20(struct inode *ino, struct file *f, char *buf, int count)
{
    return (int)scull_read(f, buf, count, &f->f_pos);
}