Lines Matching defs:file
16 #include <linux/file.h>
139 /* inotify userspace file descriptor functions */
140 static __poll_t inotify_poll(struct file *file, poll_table *wait)
142 struct fsnotify_group *group = file->private_data;
145 poll_wait(file, &group->notification_waitq, wait);
250 static ssize_t inotify_read(struct file *file, char __user *buf,
260 group = file->private_data;
284 if (file->f_flags & O_NONBLOCK)
302 static int inotify_release(struct inode *ignored, struct file *file)
304 struct fsnotify_group *group = file->private_data;
314 static long inotify_ioctl(struct file *file, unsigned int cmd,
323 group = file->private_data;
707 /* fsnotify_obtain_group took a reference to group, we put this when we kill the file in the end */
757 if (unlikely(!f.file))
767 if (unlikely(f.file->f_op != &inotify_fops)) {
784 group = f.file->private_data;
802 if (unlikely(!f.file))
806 if (unlikely(f.file->f_op != &inotify_fops))
809 group = f.file->private_data;