Lines Matching defs:fd
307 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt, in __set_close_on_exec()
318 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt, bool set) in __set_open_fd()
327 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd()
335 static inline bool fd_is_open(unsigned int fd, const struct fdtable *fdt) in fd_is_open()
558 unsigned int fd; in alloc_fd() local
611 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd()
619 void put_unused_fd(unsigned int fd) in put_unused_fd()
637 void fd_install(unsigned int fd, struct file *file) in fd_install()
677 struct file *file_close_fd_locked(struct files_struct *files, unsigned fd) in file_close_fd_locked()
696 int close_fd(unsigned fd) in close_fd()
725 unsigned int fd, unsigned int max_fd) in __range_cloexec()
738 static inline void __range_close(struct files_struct *files, unsigned int fd, in __range_close()
775 SYSCALL_DEFINE3(close_range, unsigned int, fd, unsigned int, max_fd, in SYSCALL_DEFINE3() argument
835 struct file *file_close_fd(unsigned int fd) in file_close_fd()
856 unsigned fd = i * BITS_PER_LONG; in do_close_on_exec() local
975 unsigned int fd, fmode_t mask) in __fget_files_rcu()
1050 static struct file *__fget_files(struct files_struct *files, unsigned int fd, in __fget_files()
1062 static inline struct file *__fget(unsigned int fd, fmode_t mask) in __fget()
1067 struct file *fget(unsigned int fd) in fget()
1073 struct file *fget_raw(unsigned int fd) in fget_raw()
1079 struct file *fget_task(struct task_struct *task, unsigned int fd) in fget_task()
1095 unsigned int fd = *ret_fd; in fget_task_next() local
1138 static inline struct fd __fget_light(unsigned int fd, fmode_t mask) in __fget_light()
1164 struct fd fdget(unsigned int fd) in fdget()
1170 struct fd fdget_raw(unsigned int fd) in fdget_raw()
1206 struct fd fdget_pos(unsigned int fd) in fdget_pos()
1229 void set_close_on_exec(unsigned int fd, int flag) in set_close_on_exec()
1237 bool get_close_on_exec(unsigned int fd) in get_close_on_exec()
1247 struct file *file, unsigned fd, unsigned flags) in do_dup2()
1299 int replace_fd(unsigned fd, struct file *file, unsigned flags) in replace_fd()