Lines Matching refs:fdtable
29 static void __free_fdtable(struct fdtable *fdt) in __free_fdtable()
38 __free_fdtable(container_of(rcu, struct fdtable, rcu)); in free_fdtable_rcu()
49 static void copy_fd_bitmaps(struct fdtable *nfdt, struct fdtable *ofdt, in copy_fd_bitmaps()
71 static void copy_fdtable(struct fdtable *nfdt, struct fdtable *ofdt) in copy_fdtable()
85 static struct fdtable * alloc_fdtable(unsigned int nr) in alloc_fdtable()
87 struct fdtable *fdt; in alloc_fdtable()
111 fdt = kmalloc(sizeof(struct fdtable), GFP_KERNEL_ACCOUNT); in alloc_fdtable()
152 struct fdtable *new_fdt, *cur_fdt; in expand_fdtable()
197 struct fdtable *fdt; in expand_files()
228 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) in __set_close_on_exec()
233 static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) in __clear_close_on_exec()
239 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) in __set_open_fd()
247 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd()
253 static unsigned int count_open_files(struct fdtable *fdt) in count_open_files()
277 struct fdtable *old_fdt, *new_fdt; in dup_fd()
368 static struct fdtable *close_files(struct files_struct * files) in close_files()
375 struct fdtable *fdt = rcu_dereference_raw(files->fdt); in close_files()
416 struct fdtable *fdt = close_files(files); in put_files_struct()
463 static unsigned int find_next_fd(struct fdtable *fdt, unsigned int start) in find_next_fd()
485 struct fdtable *fdt; in __alloc_fd()
551 struct fdtable *fdt = files_fdtable(files); in __put_unused_fd()
590 struct fdtable *fdt; in __fd_install()
624 struct fdtable *fdt; in __close_fd()
651 struct fdtable *fdt; in __close_fd_get_file()
676 struct fdtable *fdt; in do_close_on_exec()
821 struct fdtable *fdt; in set_close_on_exec()
834 struct fdtable *fdt; in get_close_on_exec()
848 struct fdtable *fdt; in do_dup2()
1000 struct fdtable *fdt; in iterate_fd()