Searched refs:max_fds (Results 1 – 7 of 7) sorted by relevance
| /Linux-v6.1/fs/ |
| D | file.c | 60 set = (nfdt->max_fds - count) / BITS_PER_BYTE; in copy_fd_bitmaps() 67 set = BITBIT_SIZE(nfdt->max_fds) - cpy; in copy_fd_bitmaps() 80 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable() 82 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable() 83 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable() 87 copy_fd_bitmaps(nfdt, ofdt, ofdt->max_fds); in copy_fdtable() 135 fdt->max_fds = nr; in alloc_fdtable() 191 if (unlikely(new_fdt->max_fds <= nr)) { in expand_fdtable() 196 BUG_ON(nr < cur_fdt->max_fds); in expand_fdtable() 225 if (nr < fdt->max_fds) in expand_files() [all …]
|
| 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-v6.1/include/linux/ |
| 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-v6.1/fs/proc/ |
| 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()
|
| /Linux-v6.1/io_uring/ |
| D | openclose.c | 227 if (close->fd >= fdt->max_fds) { in io_close()
|
| /Linux-v6.1/Documentation/filesystems/ |
| D | files.rst | 48 if (n <= fdt->max_fds)
|
| /Linux-v6.1/kernel/ |
| D | fork.c | 3114 int unshare_fd(unsigned long unshare_flags, unsigned int max_fds, in unshare_fd() argument 3122 *new_fdp = dup_fd(fd, max_fds, &error); in unshare_fd()
|