Lines Matching refs:files
22 struct files_struct *files = NULL; in seq_show() local
31 files = get_files_struct(task); in seq_show()
34 if (files) { in seq_show()
37 spin_lock(&files->file_lock); in seq_show()
38 file = fcheck_files(files, fd); in seq_show()
40 struct fdtable *fdt = files_fdtable(files); in seq_show()
49 spin_unlock(&files->file_lock); in seq_show()
50 put_files_struct(files); in seq_show()
60 show_fd_locks(m, file, files); in seq_show()
86 struct files_struct *files = get_files_struct(task); in tid_fd_mode() local
89 if (!files) in tid_fd_mode()
93 file = fcheck_files(files, fd); in tid_fd_mode()
97 put_files_struct(files); in tid_fd_mode()
149 struct files_struct *files = NULL; in proc_fd_link() local
155 files = get_files_struct(task); in proc_fd_link()
159 if (files) { in proc_fd_link()
163 spin_lock(&files->file_lock); in proc_fd_link()
164 fd_file = fcheck_files(files, fd); in proc_fd_link()
170 spin_unlock(&files->file_lock); in proc_fd_link()
171 put_files_struct(files); in proc_fd_link()
232 struct files_struct *files; in proc_readfd_common() local
240 files = get_files_struct(p); in proc_readfd_common()
241 if (!files) in proc_readfd_common()
246 fd < files_fdtable(files)->max_fds; in proc_readfd_common()
253 f = fcheck_files(files, fd); in proc_readfd_common()
270 put_files_struct(files); in proc_readfd_common()