Lines Matching refs:fd
26 struct file __rcu **fd; /* current fd array */ member
32 static inline bool close_on_exec(int fd, const struct fdtable *fdt) in close_on_exec() argument
34 return test_bit(fd, fdt->close_on_exec); in close_on_exec()
37 static inline bool fd_is_open(int fd, const struct fdtable *fdt) in fd_is_open() argument
39 return test_bit(fd, fdt->open_fds); in fd_is_open()
75 static inline struct file *__fcheck_files(struct files_struct *files, unsigned int fd) in __fcheck_files() argument
79 if (fd < fdt->max_fds) in __fcheck_files()
80 return rcu_dereference_raw(fdt->fd[fd]); in __fcheck_files()
84 static inline struct file *fcheck_files(struct files_struct *files, unsigned int fd) in fcheck_files() argument
89 return __fcheck_files(files, fd); in fcheck_files()
95 #define fcheck(fd) fcheck_files(current->files, fd) argument
112 unsigned int fd, struct file *file);
114 unsigned int fd);