Lines Matching defs:fd

245 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt)  in __set_close_on_exec()
250 static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) in __clear_close_on_exec()
256 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) in __set_open_fd()
264 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd()
270 static inline bool fd_is_open(unsigned int fd, const struct fdtable *fdt) in fd_is_open()
488 unsigned int fd; in alloc_fd() local
554 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd()
562 void put_unused_fd(unsigned int fd) in put_unused_fd()
588 void fd_install(unsigned int fd, struct file *file) in fd_install()
628 struct file *file_close_fd_locked(struct files_struct *files, unsigned fd) in file_close_fd_locked()
647 int close_fd(unsigned fd) in close_fd()
676 unsigned int fd, unsigned int max_fd) in __range_cloexec()
689 static inline void __range_close(struct files_struct *files, unsigned int fd, in __range_close()
725 int __close_range(unsigned fd, unsigned max_fd, unsigned int flags) in __close_range()
784 struct file *file_close_fd(unsigned int fd) in file_close_fd()
805 unsigned fd = i * BITS_PER_LONG; in do_close_on_exec() local
924 unsigned int fd, fmode_t mask) in __fget_files_rcu()
999 static struct file *__fget_files(struct files_struct *files, unsigned int fd, in __fget_files()
1011 static inline struct file *__fget(unsigned int fd, fmode_t mask) in __fget()
1016 struct file *fget(unsigned int fd) in fget()
1022 struct file *fget_raw(unsigned int fd) in fget_raw()
1028 struct file *fget_task(struct task_struct *task, unsigned int fd) in fget_task()
1040 struct file *lookup_fdget_rcu(unsigned int fd) in lookup_fdget_rcu()
1047 struct file *task_lookup_fdget_rcu(struct task_struct *task, unsigned int fd) in task_lookup_fdget_rcu()
1066 unsigned int fd = *ret_fd; in task_lookup_next_fdget_rcu() local
1100 static inline struct fd __fget_light(unsigned int fd, fmode_t mask) in __fget_light()
1126 struct fd fdget(unsigned int fd) in fdget()
1132 struct fd fdget_raw(unsigned int fd) in fdget_raw()
1153 struct fd fdget_pos(unsigned int fd) in fdget_pos()
1176 void set_close_on_exec(unsigned int fd, int flag) in set_close_on_exec()
1189 bool get_close_on_exec(unsigned int fd) in get_close_on_exec()
1199 struct file *file, unsigned fd, unsigned flags) in do_dup2()
1243 int replace_fd(unsigned fd, struct file *file, unsigned flags) in replace_fd()