Home
last modified time | relevance | path

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

/linux/fs/
H A Dfile.c118 #define fdt_words(fdt) ((fdt)->max_fds / BITS_PER_LONG) // words in ->open_fds
145 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
147 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
148 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
218 fdt->max_fds = nr; in alloc_fdtable()
271 BUG_ON(nr < cur_fdt->max_fds); in expand_fdtable()
299 if (nr < fdt->max_fds) in expand_files()
366 unsigned int last = find_last_bit(fdt->open_fds, fdt->max_fds); in sane_fdtable_size()
368 if (last == fdt->max_fds) in sane_fdtable_size()
401 new_fdt->max_fds = NR_OPEN_DEFAULT; in dup_fd()
[all …]
H A Dselect.c626 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()
1185 int size, max_fds, ret = -EINVAL; in compat_core_sys_select() local
1195 max_fds = fdt->max_fds; in compat_core_sys_select()
1197 if (n > max_fds) in compat_core_sys_select()
1198 n = max_fds; in compat_core_sys_select()
/linux/tools/testing/selftests/filesystems/
H A Dfile_stressor.c53 int max_fds; in FIXTURE() local
84 self->max_fds = 500; in FIXTURE_SETUP()
122 for (int i = 0; i < self->max_fds; i++) {
/linux/fs/proc/
H A Dfd.c299 *count = bitmap_weight(fdt->open_fds, fdt->max_fds); in proc_readfd_count()
/linux/Documentation/filesystems/
H A Dfiles.rst48 if (n <= fdt->max_fds)