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
1204 static ssize_t fuse_dev_do_read(struct fuse_dev *fud, struct file *file,
1241 if (file->f_flags & O_NONBLOCK)
1342 static int fuse_dev_open(struct inode *inode, struct file *file)
1345 * The fuse device's file's private_data is used to hold
1347 * keep track of whether the file has been mounted already.
1349 file->private_data = NULL;
1356 struct file *file = iocb->ki_filp;
1357 struct fuse_dev *fud = fuse_get_dev(file);
1367 return fuse_dev_do_read(fud, file, &cs, iov_iter_count(to));
1370 static ssize_t fuse_dev_splice_read(struct file *in, loff_t *ppos,
1964 struct file *out, loff_t *ppos,
2057 static __poll_t fuse_dev_poll(struct file *file, poll_table *wait)
2061 struct fuse_dev *fud = fuse_get_dev(file);
2067 poll_wait(file, &fiq->waitq, wait);
2197 int fuse_dev_release(struct inode *inode, struct file *file)
2199 struct fuse_dev *fud = fuse_get_dev(file);
2226 static int fuse_dev_fasync(int fd, struct file *file, int on)
2228 struct fuse_dev *fud = fuse_get_dev(file);
2234 return fasync_helper(fd, file, on, &fud->fc->iq.fasync);
2237 static int fuse_device_clone(struct fuse_conn *fc, struct file *new)
2254 static long fuse_dev_ioctl(struct file *file, unsigned int cmd,
2268 if (!f.file)
2272 * Check against file->f_op because CUSE
2275 if (f.file->f_op == file->f_op)
2276 fud = fuse_get_dev(f.file);
2281 res = fuse_device_clone(fud->fc, file);