Searched refs:max_fds (Results 1 – 7 of 7) sorted by relevance
67 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()69 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()70 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()74 cpy = ofdt->max_fds / BITS_PER_BYTE; in copy_fdtable()75 set = (nfdt->max_fds - ofdt->max_fds) / BITS_PER_BYTE; in copy_fdtable()111 fdt->max_fds = nr; in alloc_fdtable()157 if (unlikely(new_fdt->max_fds <= nr)) { in expand_fdtable()166 if (nr >= cur_fdt->max_fds) { in expand_fdtable()194 if (nr < fdt->max_fds) in expand_files()227 int size = fdt->max_fds; in count_open_files()[all …]
552 int ret, max_fds; in core_sys_select() local565 max_fds = fdt->max_fds; in core_sys_select()567 if (n > max_fds) in core_sys_select()568 n = max_fds; in core_sys_select()
1240 int size, max_fds, ret = -EINVAL; in compat_core_sys_select() local1250 max_fds = fdt->max_fds; in compat_core_sys_select()1252 if (n > max_fds) in compat_core_sys_select()1253 n = max_fds; in compat_core_sys_select()
25 unsigned int max_fds; member79 if (fd < fdt->max_fds) in __fcheck_files()
143 unsigned int max_fds = 0; in task_state() local159 max_fds = files_fdtable(p->files)->max_fds; in task_state()183 max_fds); in task_state()
247 fd < files_fdtable(files)->max_fds; in proc_readfd_common()
45 if (n <= fdt->max_fds)