Searched refs:max_fds (Results 1 – 5 of 5) sorted by relevance
118 #define fdt_words(fdt) ((fdt)->max_fds / BITS_PER_LONG) // words in ->open_fds145 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 …]
626 int ret, max_fds; in core_sys_select() local639 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() local1195 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()
53 int max_fds; in FIXTURE() local84 self->max_fds = 500; in FIXTURE_SETUP()122 for (int i = 0; i < self->max_fds; i++) {
299 *count = bitmap_weight(fdt->open_fds, fdt->max_fds); in proc_readfd_count()
48 if (n <= fdt->max_fds)