Searched refs:max_fds (Results 1 – 7 of 7) sorted by relevance
/linux/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() 119 fdt->max_fds = nr; in alloc_fdtable() 209 if (nr < fdt->max_fds) in expand_files() 278 max_fds = NR_OPEN_DEFAULT; in sane_fdtable_size() 396 if (i >= fdt->max_fds) in close_files() 484 if (fd < fdt->max_fds) in alloc_fd() 616 if (fd >= fdt->max_fds) { in pick_file() 656 return fdt->max_fds - 1; in last_fd() 776 if (fd >= fdt->max_fds) in __close_fd_get_file() [all …]
|
A 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() 1196 int size, max_fds, ret = -EINVAL; in compat_core_sys_select() local 1206 max_fds = fdt->max_fds; in compat_core_sys_select() 1208 if (n > max_fds) in compat_core_sys_select() 1209 n = max_fds; in compat_core_sys_select()
|
A D | io_uring.c | 4684 if (close->fd >= fdt->max_fds) { in io_close()
|
/linux/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/fs/proc/ |
A D | array.c | 151 unsigned int max_fds = 0; in task_state() local 169 max_fds = files_fdtable(p->files)->max_fds; in task_state() 191 seq_put_decimal_ull(m, "\nFDSize:\t", max_fds); in task_state()
|
/linux/Documentation/filesystems/ |
A D | files.rst | 48 if (n <= fdt->max_fds)
|
/linux/kernel/ |
A D | fork.c | 3001 int unshare_fd(unsigned long unshare_flags, unsigned int max_fds, in unshare_fd() argument 3009 *new_fdp = dup_fd(fd, max_fds, &error); in unshare_fd()
|
Completed in 37 milliseconds