Lines Matching refs:fdtable

34 static void __free_fdtable(struct fdtable *fdt)  in __free_fdtable()
43 __free_fdtable(container_of(rcu, struct fdtable, rcu)); in free_fdtable_rcu()
54 static void copy_fd_bitmaps(struct fdtable *nfdt, struct fdtable *ofdt, in copy_fd_bitmaps()
76 static void copy_fdtable(struct fdtable *nfdt, struct fdtable *ofdt) in copy_fdtable()
90 static struct fdtable * alloc_fdtable(unsigned int nr) in alloc_fdtable()
92 struct fdtable *fdt; in alloc_fdtable()
116 fdt = kmalloc(sizeof(struct fdtable), GFP_KERNEL_ACCOUNT); in alloc_fdtable()
157 struct fdtable *new_fdt, *cur_fdt; in expand_fdtable()
202 struct fdtable *fdt; in expand_files()
233 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) in __set_close_on_exec()
238 static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) in __clear_close_on_exec()
244 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) in __set_open_fd()
252 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd()
258 static unsigned int count_open_files(struct fdtable *fdt) in count_open_files()
272 static unsigned int sane_fdtable_size(struct fdtable *fdt, unsigned int max_fds) in sane_fdtable_size()
292 struct fdtable *old_fdt, *new_fdt; in dup_fd()
383 static struct fdtable *close_files(struct files_struct * files) in close_files()
390 struct fdtable *fdt = rcu_dereference_raw(files->fdt); in close_files()
418 struct fdtable *fdt = close_files(files); in put_files_struct()
453 static unsigned int find_next_fd(struct fdtable *fdt, unsigned int start) in find_next_fd()
475 struct fdtable *fdt; in alloc_fd()
541 struct fdtable *fdt = files_fdtable(files); in __put_unused_fd()
576 struct fdtable *fdt; in fd_install()
612 struct fdtable *fdt; in pick_file()
654 static inline unsigned last_fd(struct fdtable *fdt) in last_fd()
662 struct fdtable *fdt; in __range_cloexec()
773 struct fdtable *fdt; in __close_fd_get_file()
811 struct fdtable *fdt; in do_close_on_exec()
1010 struct fdtable *fdt; in set_close_on_exec()
1023 struct fdtable *fdt; in get_close_on_exec()
1037 struct fdtable *fdt; in do_dup2()
1246 struct fdtable *fdt; in iterate_fd()