Searched refs:max_fds (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/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-6.6.21/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-6.6.21/fs/proc/ |
D | array.c | 157 unsigned int max_fds = 0; in task_state() local 175 max_fds = files_fdtable(p->files)->max_fds; in task_state() 197 seq_put_decimal_ull(m, "\nFDSize:\t", max_fds); in task_state()
|
D | fd.c | 297 *count = bitmap_weight(fdt->open_fds, fdt->max_fds); in proc_readfd_count()
|
/linux-6.6.21/io_uring/ |
D | openclose.c | 234 if (close->fd >= fdt->max_fds) { in io_close()
|
/linux-6.6.21/Documentation/filesystems/ |
D | files.rst | 48 if (n <= fdt->max_fds)
|
/linux-6.6.21/kernel/ |
D | fork.c | 3361 int unshare_fd(unsigned long unshare_flags, unsigned int max_fds, in unshare_fd() argument 3369 *new_fdp = dup_fd(fd, max_fds, &error); in unshare_fd()
|