Searched refs:max_fds (Results 1 – 6 of 6) sorted by relevance
49 #define fdt_words(fdt) ((fdt)->max_fds / BITS_PER_LONG) // words in ->open_fds76 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 …]
627 int ret, max_fds; in core_sys_select() local640 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() local1210 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()
27 unsigned int max_fds; member75 unsigned long mask = array_index_mask_nospec(fd, fdt->max_fds); in files_lookup_fd_raw()
157 unsigned int max_fds = 0; in task_state() local175 max_fds = files_fdtable(p->files)->max_fds; in task_state()197 seq_put_decimal_ull(m, "\nFDSize:\t", max_fds); in task_state()
304 *count = bitmap_weight(fdt->open_fds, fdt->max_fds); in proc_readfd_count()
48 if (n <= fdt->max_fds)