Lines Matching refs:fd
26 struct file __rcu **fd; /* current fd array */ member
33 static inline bool close_on_exec(int fd, const struct fdtable *fdt) in close_on_exec() argument
35 return test_bit(fd, fdt->close_on_exec); in close_on_exec()
38 static inline bool fd_is_open(int fd, const struct fdtable *fdt) in fd_is_open() argument
40 return test_bit(fd, fdt->open_fds); in fd_is_open()
80 static inline struct file *__fcheck_files(struct files_struct *files, unsigned int fd) in __fcheck_files() argument
84 if (fd < fdt->max_fds) in __fcheck_files()
85 return rcu_dereference_raw(fdt->fd[fd]); in __fcheck_files()
89 static inline struct file *fcheck_files(struct files_struct *files, unsigned int fd) in fcheck_files() argument
94 return __fcheck_files(files, fd); in fcheck_files()
100 #define fcheck(fd) fcheck_files(current->files, fd) argument
117 unsigned int fd, struct file *file);
119 unsigned int fd);