Lines Matching refs:fdtable
103 static void __free_fdtable(struct fdtable *fdt) in __free_fdtable()
112 __free_fdtable(container_of(rcu, struct fdtable, rcu)); in free_fdtable_rcu()
124 static inline void copy_fd_bitmaps(struct fdtable *nfdt, struct fdtable *ofdt, in copy_fd_bitmaps()
141 static void copy_fdtable(struct fdtable *nfdt, struct fdtable *ofdt) in copy_fdtable()
162 static struct fdtable *alloc_fdtable(unsigned int slots_wanted) in alloc_fdtable()
164 struct fdtable *fdt; in alloc_fdtable()
215 fdt = kmalloc_obj(struct fdtable, GFP_KERNEL_ACCOUNT); in alloc_fdtable()
256 struct fdtable *new_fdt, *cur_fdt; in expand_fdtable()
292 struct fdtable *fdt; in expand_files()
322 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt, in __set_close_on_exec()
333 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt, bool set) in __set_open_fd()
342 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd()
350 static inline bool fd_is_open(unsigned int fd, const struct fdtable *fdt) in fd_is_open()
368 static unsigned long dup_fd_dropped_word(struct fdtable *fdt, unsigned int i, in dup_fd_dropped_word()
392 static unsigned int sane_fdtable_size(struct fdtable *fdt, struct fd_range *range) in sane_fdtable_size()
443 struct fdtable *old_fdt, *new_fdt; in dup_fd()
552 static struct fdtable *close_files(struct files_struct *files) in close_files()
559 struct fdtable *fdt = rcu_dereference_raw(files->fdt); in close_files()
584 struct fdtable *fdt = close_files(files); in put_files_struct()
621 static unsigned int find_next_fd(struct fdtable *fdt, unsigned int start) in find_next_fd()
651 struct fdtable *fdt; in alloc_fd()
704 struct fdtable *fdt = files_fdtable(files); in __put_unused_fd()
739 struct fdtable *fdt; in fd_install_slowpath()
759 struct fdtable *fdt; in fd_install()
793 struct fdtable *fdt = files_fdtable(files); in file_close_fd_locked()
830 static inline unsigned last_fd(struct fdtable *fdt) in last_fd()
838 struct fdtable *fdt; in __range_cloexec()
861 static inline unsigned int last_fd_to_close(struct fdtable *fdt, unsigned int n, in last_fd_to_close()
902 struct fdtable *fdt; in __range_close()
1040 struct fdtable *fdt; in close_cloexec_files()
1171 struct fdtable *fdt = rcu_dereference_raw(files->fdt); in __fget_files_rcu()
1446 struct fdtable *fdt; in do_dup2()
1663 struct fdtable *fdt; in iterate_fd()