Lines Matching defs:fd
233 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) in __set_close_on_exec()
238 static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) in __clear_close_on_exec()
244 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) in __set_open_fd()
252 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd()
473 unsigned int fd; in alloc_fd() local
539 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd()
547 void put_unused_fd(unsigned int fd) in put_unused_fd()
573 void fd_install(unsigned int fd, struct file *file) in fd_install()
609 static struct file *pick_file(struct files_struct *files, unsigned fd) in pick_file()
633 int close_fd(unsigned fd) in close_fd()
660 unsigned int fd, unsigned int max_fd) in __range_cloexec()
673 static inline void __range_close(struct files_struct *cur_fds, unsigned int fd, in __range_close()
702 int __close_range(unsigned fd, unsigned max_fd, unsigned int flags) in __close_range()
769 int __close_fd_get_file(unsigned int fd, struct file **res) in __close_fd_get_file()
796 int close_fd_get_file(unsigned int fd, struct file **res) in close_fd_get_file()
817 unsigned fd = i * BITS_PER_LONG; in do_close_on_exec() local
845 unsigned int fd, fmode_t mask, unsigned int refs) in __fget_files_rcu()
899 static struct file *__fget_files(struct files_struct *files, unsigned int fd, in __fget_files()
911 static inline struct file *__fget(unsigned int fd, fmode_t mask, in __fget()
917 struct file *fget_many(unsigned int fd, unsigned int refs) in fget_many()
922 struct file *fget(unsigned int fd) in fget()
928 struct file *fget_raw(unsigned int fd) in fget_raw()
934 struct file *fget_task(struct task_struct *task, unsigned int fd) in fget_task()
946 struct file *task_lookup_fd_rcu(struct task_struct *task, unsigned int fd) in task_lookup_fd_rcu()
965 unsigned int fd = *ret_fd; in task_lookup_next_fd_rcu() local
998 static unsigned long __fget_light(unsigned int fd, fmode_t mask) in __fget_light()
1015 unsigned long __fdget(unsigned int fd) in __fdget()
1021 unsigned long __fdget_raw(unsigned int fd) in __fdget_raw()
1026 unsigned long __fdget_pos(unsigned int fd) in __fdget_pos()
1051 void set_close_on_exec(unsigned int fd, int flag) in set_close_on_exec()
1064 bool get_close_on_exec(unsigned int fd) in get_close_on_exec()
1077 struct file *file, unsigned fd, unsigned flags) in do_dup2()
1120 int replace_fd(unsigned fd, struct file *file, unsigned flags) in replace_fd()