Searched refs:max_fds (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.10/fs/ |
D | file.c | 59 set = (nfdt->max_fds - count) / BITS_PER_BYTE; in copy_fd_bitmaps() 66 set = BITBIT_SIZE(nfdt->max_fds) - cpy; in copy_fd_bitmaps() 79 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable() 81 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable() 82 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable() 86 copy_fd_bitmaps(nfdt, ofdt, ofdt->max_fds); in copy_fdtable() 118 fdt->max_fds = nr; in alloc_fdtable() 174 if (unlikely(new_fdt->max_fds <= nr)) { in expand_fdtable() 179 BUG_ON(nr < cur_fdt->max_fds); in expand_fdtable() 208 if (nr < fdt->max_fds) in expand_files() [all …]
|
D | select.c | 626 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() 1190 int size, max_fds, ret = -EINVAL; in compat_core_sys_select() local 1200 max_fds = fdt->max_fds; in compat_core_sys_select() 1202 if (n > max_fds) in compat_core_sys_select() 1203 n = max_fds; in compat_core_sys_select()
|
/Linux-v5.10/include/linux/ |
D | fdtable.h | 28 unsigned int max_fds; member 87 if (fd < fdt->max_fds) { in __fcheck_files() 88 fd = array_index_nospec(fd, fdt->max_fds); in __fcheck_files() 127 extern int unshare_fd(unsigned long unshare_flags, unsigned int max_fds,
|
/Linux-v5.10/kernel/bpf/ |
D | task_iter.c | 143 u32 curr_tid = info->tid, max_fds; in task_file_seq_get_next() local 182 max_fds = files_fdtable(curr_files)->max_fds; in task_file_seq_get_next() 183 for (; curr_fd < max_fds; curr_fd++) { in task_file_seq_get_next()
|
/Linux-v5.10/fs/proc/ |
D | array.c | 160 unsigned int max_fds = 0; in task_state() local 178 max_fds = files_fdtable(p->files)->max_fds; in task_state() 200 seq_put_decimal_ull(m, "\nFDSize:\t", max_fds); in task_state()
|
D | fd.c | 246 fd < files_fdtable(files)->max_fds; in proc_readfd_common()
|
/Linux-v5.10/Documentation/filesystems/ |
D | files.rst | 48 if (n <= fdt->max_fds)
|
/Linux-v5.10/kernel/ |
D | fork.c | 2875 int unshare_fd(unsigned long unshare_flags, unsigned int max_fds, in unshare_fd() argument 2883 *new_fdp = dup_fd(fd, max_fds, &error); in unshare_fd()
|