Lines Matching refs:fd
28 struct file __rcu **fd; /* current fd array */ member
72 static inline struct file *files_lookup_fd_raw(struct files_struct *files, unsigned int fd) in files_lookup_fd_raw() argument
75 unsigned long mask = array_index_mask_nospec(fd, fdt->max_fds); in files_lookup_fd_raw()
84 needs_masking = rcu_dereference_raw(fdt->fd[fd&mask]); in files_lookup_fd_raw()
88 static inline struct file *files_lookup_fd_locked(struct files_struct *files, unsigned int fd) in files_lookup_fd_locked() argument
92 return files_lookup_fd_raw(files, fd); in files_lookup_fd_locked()
95 struct file *lookup_fdget_rcu(unsigned int fd);
96 struct file *task_lookup_fdget_rcu(struct task_struct *task, unsigned int fd);
97 struct file *task_lookup_next_fdget_rcu(struct task_struct *task, unsigned int *fd);
99 static inline bool close_on_exec(unsigned int fd, const struct files_struct *files) in close_on_exec() argument
101 return test_bit(fd, files_fdtable(files)->close_on_exec); in close_on_exec()
117 extern int close_fd(unsigned int fd);
118 extern int __close_range(unsigned int fd, unsigned int max_fd, unsigned int flags);
119 extern struct file *file_close_fd(unsigned int fd);