Home
last modified time | relevance | path

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

/Linux-v5.4/fs/
Dfile.c55 set = (nfdt->max_fds - count) / BITS_PER_BYTE; in copy_fd_bitmaps()
62 set = BITBIT_SIZE(nfdt->max_fds) - cpy; in copy_fd_bitmaps()
75 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
77 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
78 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
82 copy_fd_bitmaps(nfdt, ofdt, ofdt->max_fds); in copy_fdtable()
114 fdt->max_fds = nr; in alloc_fdtable()
170 if (unlikely(new_fdt->max_fds <= nr)) { in expand_fdtable()
175 BUG_ON(nr < cur_fdt->max_fds); in expand_fdtable()
204 if (nr < fdt->max_fds) in expand_files()
[all …]
Dselect.c626 int ret, max_fds; in core_sys_select() local
639 max_fds = fdt->max_fds; in core_sys_select()
641 if (n > max_fds) in core_sys_select()
642 n = max_fds; in core_sys_select()
1180 int size, max_fds, ret = -EINVAL; in compat_core_sys_select() local
1190 max_fds = fdt->max_fds; in compat_core_sys_select()
1192 if (n > max_fds) in compat_core_sys_select()
1193 n = max_fds; in compat_core_sys_select()
/Linux-v5.4/include/linux/
Dfdtable.h27 unsigned int max_fds; member
86 if (fd < fdt->max_fds) { in __fcheck_files()
87 fd = array_index_nospec(fd, fdt->max_fds); in __fcheck_files()
/Linux-v5.4/fs/proc/
Darray.c161 unsigned int max_fds = 0; in task_state() local
179 max_fds = files_fdtable(p->files)->max_fds; in task_state()
201 seq_put_decimal_ull(m, "\nFDSize:\t", max_fds); in task_state()
Dfd.c246 fd < files_fdtable(files)->max_fds; in proc_readfd_common()
/Linux-v5.4/Documentation/filesystems/
Dfiles.txt45 if (n <= fdt->max_fds)