Lines Matching defs:file
21 static __poll_t mounts_poll(struct file *file, poll_table *wait)
23 struct seq_file *m = file->private_data;
29 poll_wait(file, &p->ns->poll, wait);
224 /* file system type */
239 static int mounts_open_common(struct inode *inode, struct file *file,
272 ret = seq_open_private(file, &mounts_op, sizeof(struct proc_mounts));
276 m = file->private_data;
296 static int mounts_release(struct inode *inode, struct file *file)
298 struct seq_file *m = file->private_data;
303 return seq_release_private(inode, file);
306 static int mounts_open(struct inode *inode, struct file *file)
308 return mounts_open_common(inode, file, show_vfsmnt);
311 static int mountinfo_open(struct inode *inode, struct file *file)
313 return mounts_open_common(inode, file, show_mountinfo);
316 static int mountstats_open(struct inode *inode, struct file *file)
318 return mounts_open_common(inode, file, show_vfsstat);