Home
last modified time | relevance | path

Searched refs:max_fds (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/fs/
Dfile.c49 #define fdt_words(fdt) ((fdt)->max_fds / BITS_PER_LONG) // words in ->open_fds
76 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
78 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
79 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
131 fdt->max_fds = nr; in alloc_fdtable()
187 if (unlikely(new_fdt->max_fds <= nr)) { in expand_fdtable()
192 BUG_ON(nr < cur_fdt->max_fds); in expand_fdtable()
221 if (nr < fdt->max_fds) in expand_files()
286 unsigned int last = find_last_bit(fdt->open_fds, fdt->max_fds); in sane_fdtable_size()
288 if (last == fdt->max_fds) in sane_fdtable_size()
[all …]
Dselect.c627 int ret, max_fds; in core_sys_select() local
640 max_fds = fdt->max_fds; in core_sys_select()
642 if (n > max_fds) in core_sys_select()
643 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.12.1/include/linux/
Dfdtable.h27 unsigned int max_fds; member
75 unsigned long mask = array_index_mask_nospec(fd, fdt->max_fds); in files_lookup_fd_raw()
/linux-6.12.1/fs/proc/
Darray.c157 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()
Dfd.c304 *count = bitmap_weight(fdt->open_fds, fdt->max_fds); in proc_readfd_count()
/linux-6.12.1/Documentation/filesystems/
Dfiles.rst48 if (n <= fdt->max_fds)