Searched refs:max_fds (Results 1 – 8 of 8) sorted by relevance
/linux-6.3-rc2/fs/ |
A D | file.c | 80 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable() 83 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable() 135 fdt->max_fds = nr; in alloc_fdtable() 225 if (nr < fdt->max_fds) in expand_files() 307 max_fds = NR_OPEN_DEFAULT; in sane_fdtable_size() 425 if (i >= fdt->max_fds) in close_files() 472 .max_fds = NR_OPEN_DEFAULT, 513 if (fd < fdt->max_fds) in alloc_fd() 642 if (fd >= fdt->max_fds) in pick_file() 679 return fdt->max_fds - 1; in last_fd() [all …]
|
A D | select.c | 630 int ret, max_fds; in core_sys_select() local 643 max_fds = fdt->max_fds; in core_sys_select() 645 if (n > max_fds) in core_sys_select() 646 n = max_fds; in core_sys_select() 1200 int size, max_fds, ret = -EINVAL; in compat_core_sys_select() local 1210 max_fds = fdt->max_fds; in compat_core_sys_select() 1212 if (n > max_fds) in compat_core_sys_select() 1213 n = max_fds; in compat_core_sys_select()
|
/linux-6.3-rc2/include/linux/ |
A D | fdtable.h | 28 unsigned int max_fds; member 87 if (fd < fdt->max_fds) { in files_lookup_fd_raw() 88 fd = array_index_nospec(fd, fdt->max_fds); in files_lookup_fd_raw() 129 extern int unshare_fd(unsigned long unshare_flags, unsigned int max_fds,
|
/linux-6.3-rc2/fs/proc/ |
A D | array.c | 156 unsigned int max_fds = 0; in task_state() local 174 max_fds = files_fdtable(p->files)->max_fds; in task_state() 196 seq_put_decimal_ull(m, "\nFDSize:\t", max_fds); in task_state()
|
A D | fd.c | 297 *count = bitmap_weight(fdt->open_fds, fdt->max_fds); in proc_readfd_count()
|
/linux-6.3-rc2/io_uring/ |
A D | openclose.c | 233 if (close->fd >= fdt->max_fds) { in io_close()
|
/linux-6.3-rc2/Documentation/filesystems/ |
A D | files.rst | 48 if (n <= fdt->max_fds)
|
/linux-6.3-rc2/kernel/ |
A D | fork.c | 3131 int unshare_fd(unsigned long unshare_flags, unsigned int max_fds, in unshare_fd() argument 3139 *new_fdp = dup_fd(fd, max_fds, &error); in unshare_fd()
|
Completed in 19 milliseconds