Home
last modified time | relevance | path

Searched refs:fdtable (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/Documentation/filesystems/
Dfiles.rst28 table are in a separate structure - struct fdtable.
29 files_struct contains a pointer to struct fdtable through
31 fdtable is embedded in files_struct itself. On a subsequent
32 expansion of fdtable, a new fdtable structure is allocated
33 and files->fdtab points to the new structure. The fdtable
35 see the old fdtable or the new fdtable making the update
37 the fdtable structure -
39 1. All references to the fdtable must be done through
42 struct fdtable *fdt;
55 The fdtable pointer must be read within the read-side
[all …]
/linux-6.1.9/fs/
Dfile.c34 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()
105 static struct fdtable * alloc_fdtable(unsigned int nr) in alloc_fdtable()
107 struct fdtable *fdt; in alloc_fdtable()
132 fdt = kmalloc(sizeof(struct fdtable), GFP_KERNEL_ACCOUNT); in alloc_fdtable()
173 struct fdtable *new_fdt, *cur_fdt; in expand_fdtable()
218 struct fdtable *fdt; in expand_files()
249 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) in __set_close_on_exec()
[all …]
Dselect.c425 struct fdtable *fdt; in max_select_fd()
632 struct fdtable *fdt; in core_sys_select()
1201 struct fdtable *fdt; in compat_core_sys_select()
/linux-6.1.9/include/linux/
Dfdtable.h27 struct fdtable { struct
36 static inline bool close_on_exec(unsigned int fd, const struct fdtable *fdt) in close_on_exec() argument
41 static inline bool fd_is_open(unsigned int fd, const struct fdtable *fdt) in fd_is_open()
57 struct fdtable __rcu *fdt;
58 struct fdtable fdtab;
85 struct fdtable *fdt = rcu_dereference_raw(files->fdt); in files_lookup_fd_raw()
/linux-6.1.9/io_uring/
Dopenclose.c216 struct fdtable *fdt; in io_close()
/linux-6.1.9/fs/proc/
Dfd.c40 struct fdtable *fdt = files_fdtable(files); in seq_show()