Lines Matching refs:file
6 See the file COPYING.
18 #include <linux/file.h>
34 static struct fuse_dev *fuse_get_dev(struct file *file)
37 * Lockless access is OK, because file->private data is set
38 * once during mount and is valid until the file is released.
40 return READ_ONCE(file->private_data);
275 * occurred during communication with userspace, or the device file
1213 static ssize_t fuse_dev_do_read(struct fuse_dev *fud, struct file *file,
1250 if (file->f_flags & O_NONBLOCK)
1351 static int fuse_dev_open(struct inode *inode, struct file *file)
1354 * The fuse device's file's private_data is used to hold
1356 * keep track of whether the file has been mounted already.
1358 file->private_data = NULL;
1365 struct file *file = iocb->ki_filp;
1366 struct fuse_dev *fud = fuse_get_dev(file);
1376 return fuse_dev_do_read(fud, file, &cs, iov_iter_count(to));
1379 static ssize_t fuse_dev_splice_read(struct file *in, loff_t *ppos,
1975 struct file *out, loff_t *ppos,
2068 static __poll_t fuse_dev_poll(struct file *file, poll_table *wait)
2072 struct fuse_dev *fud = fuse_get_dev(file);
2078 poll_wait(file, &fiq->waitq, wait);
2208 int fuse_dev_release(struct inode *inode, struct file *file)
2210 struct fuse_dev *fud = fuse_get_dev(file);
2237 static int fuse_dev_fasync(int fd, struct file *file, int on)
2239 struct fuse_dev *fud = fuse_get_dev(file);
2245 return fasync_helper(fd, file, on, &fud->fc->iq.fasync);
2248 static int fuse_device_clone(struct fuse_conn *fc, struct file *new)
2265 static long fuse_dev_ioctl(struct file *file, unsigned int cmd,
2275 struct file *old = fget(oldfd);
2282 * Check against file->f_op because CUSE
2285 if (old->f_op == file->f_op &&
2286 old->f_cred->user_ns == file->f_cred->user_ns)
2291 err = fuse_device_clone(fud->fc, file);