Lines Matching refs:file
16 #include <linux/file.h>
102 /* intofiy userspace file descriptor functions */
103 static __poll_t inotify_poll(struct file *file, poll_table *wait)
105 struct fsnotify_group *group = file->private_data;
108 poll_wait(file, &group->notification_waitq, wait);
214 static ssize_t inotify_read(struct file *file, char __user *buf,
224 group = file->private_data;
248 if (file->f_flags & O_NONBLOCK)
266 static int inotify_release(struct inode *ignored, struct file *file)
268 struct fsnotify_group *group = file->private_data;
278 static long inotify_ioctl(struct file *file, unsigned int cmd,
287 group = file->private_data;
673 /* fsnotify_obtain_group took a reference to group, we put this when we kill the file in the end */
723 if (unlikely(!f.file))
733 if (unlikely(f.file->f_op != &inotify_fops)) {
750 group = f.file->private_data;
768 if (unlikely(!f.file))
772 if (unlikely(f.file->f_op != &inotify_fops))
775 group = f.file->private_data;