Lines Matching refs:filp
68 static int snapshot_open(struct inode *inode, struct file *filp) in snapshot_open() argument
80 if ((filp->f_flags & O_ACCMODE) == O_RDWR) { in snapshot_open()
90 nonseekable_open(inode, filp); in snapshot_open()
92 filp->private_data = data; in snapshot_open()
94 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) { in snapshot_open()
120 static int snapshot_release(struct inode *inode, struct file *filp) in snapshot_release() argument
128 data = filp->private_data; in snapshot_release()
141 static ssize_t snapshot_read(struct file *filp, char __user *buf, in snapshot_read() argument
149 data = filp->private_data; in snapshot_read()
168 static ssize_t snapshot_write(struct file *filp, const char __user *buf, in snapshot_write() argument
176 data = filp->private_data; in snapshot_write()
190 static long snapshot_ioctl(struct file *filp, unsigned int cmd, in snapshot_ioctl() argument
208 data = filp->private_data; in snapshot_ioctl()