Lines Matching refs:fd
35 unsigned int fd = proc_fd(m->private); in seq_show() local
38 file = fcheck_files(files, fd); in seq_show()
43 if (close_on_exec(fd, fdt)) in seq_show()
84 static bool tid_fd_mode(struct task_struct *task, unsigned fd, fmode_t *mode) in tid_fd_mode() argument
93 file = fcheck_files(files, fd); in tid_fd_mode()
121 unsigned int fd; in tid_fd_revalidate() local
128 fd = proc_fd(inode); in tid_fd_revalidate()
132 if (tid_fd_mode(task, fd, &f_mode)) { in tid_fd_revalidate()
160 unsigned int fd = proc_fd(d_inode(dentry)); in proc_fd_link() local
164 fd_file = fcheck_files(files, fd); in proc_fd_link()
179 unsigned fd; member
194 ei->fd = data->fd; in proc_fd_instantiate()
211 struct fd_data data = {.fd = name_to_int(&dentry->d_name)}; in proc_lookupfd_common()
216 if (data.fd == ~0U) in proc_lookupfd_common()
218 if (!tid_fd_mode(task, data.fd, &data.mode)) in proc_lookupfd_common()
233 unsigned int fd; in proc_readfd_common() local
245 for (fd = ctx->pos - 2; in proc_readfd_common()
246 fd < files_fdtable(files)->max_fds; in proc_readfd_common()
247 fd++, ctx->pos++) { in proc_readfd_common()
253 f = fcheck_files(files, fd); in proc_readfd_common()
258 data.fd = fd; in proc_readfd_common()
260 len = snprintf(name, sizeof(name), "%u", fd); in proc_readfd_common()
333 ei->fd = data->fd; in proc_fdinfo_instantiate()