Lines Matching refs:fdtable
47 static void __free_fdtable(struct fdtable *fdt) in __free_fdtable()
56 __free_fdtable(container_of(rcu, struct fdtable, rcu)); in free_fdtable_rcu()
67 static void copy_fd_bitmaps(struct fdtable *nfdt, struct fdtable *ofdt, in copy_fd_bitmaps()
89 static void copy_fdtable(struct fdtable *nfdt, struct fdtable *ofdt) in copy_fdtable()
103 static struct fdtable * alloc_fdtable(unsigned int nr) in alloc_fdtable()
105 struct fdtable *fdt; in alloc_fdtable()
129 fdt = kmalloc(sizeof(struct fdtable), GFP_KERNEL); in alloc_fdtable()
169 struct fdtable *new_fdt, *cur_fdt; in expand_fdtable()
214 struct fdtable *fdt; in expand_files()
245 static inline void __set_close_on_exec(int fd, struct fdtable *fdt) in __set_close_on_exec()
250 static inline void __clear_close_on_exec(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 int count_open_files(struct fdtable *fdt) in count_open_files()
294 struct fdtable *old_fdt, *new_fdt; in dup_fd()
385 static struct fdtable *close_files(struct files_struct * files) in close_files()
392 struct fdtable *fdt = rcu_dereference_raw(files->fdt); in close_files()
433 struct fdtable *fdt = close_files(files); in put_files_struct()
479 static unsigned long find_next_fd(struct fdtable *fdt, unsigned long start) in find_next_fd()
501 struct fdtable *fdt; in __alloc_fd()
567 struct fdtable *fdt = files_fdtable(files); in __put_unused_fd()
606 struct fdtable *fdt; in __fd_install()
637 struct fdtable *fdt; in __close_fd()
660 struct fdtable *fdt; in do_close_on_exec()
795 struct fdtable *fdt; in set_close_on_exec()
808 struct fdtable *fdt; in get_close_on_exec()
822 struct fdtable *fdt; in do_dup2()
964 struct fdtable *fdt; in iterate_fd()