Lines Matching defs:file
10 #include <linux/file.h>
24 struct file *file = NULL;
38 file = files_lookup_fd_locked(files, fd);
39 if (file) {
42 f_flags = file->f_flags;
46 get_file(file);
57 (long long)file->f_pos, f_flags,
58 real_mount(file->f_path.mnt)->mnt_id);
60 show_fd_locks(m, file, files);
64 if (file->f_op->show_fdinfo)
65 file->f_op->show_fdinfo(m, file);
68 fput(file);
72 static int seq_fdinfo_open(struct inode *inode, struct file *file)
74 return single_open(file, seq_show, inode);
87 struct file *file;
93 file = fcheck_files(files, fd);
94 if (file)
95 *mode = file->f_mode;
98 return !!file;
161 struct file *fd_file;
228 static int proc_readfd_common(struct file *file, struct dir_context *ctx,
231 struct task_struct *p = get_proc_task(file_inode(file));
238 if (!dir_emit_dots(file, ctx))
248 struct file *f;
261 if (!proc_fill_cache(file, ctx,
276 static int proc_readfd(struct file *file, struct dir_context *ctx)
278 return proc_readfd_common(file, ctx, proc_fd_instantiate);
348 static int proc_readfdinfo(struct file *file, struct dir_context *ctx)
350 return proc_readfd_common(file, ctx,