Home
last modified time | relevance | path

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

/linux-4.1.27/fs/
Dfile.c67 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 …]
Dselect.c552 int ret, max_fds; in core_sys_select() local
565 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()
Dcompat.c1240 int size, max_fds, ret = -EINVAL; in compat_core_sys_select() local
1250 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()
/linux-4.1.27/include/linux/
Dfdtable.h25 unsigned int max_fds; member
79 if (fd < fdt->max_fds) in __fcheck_files()
/linux-4.1.27/fs/proc/
Darray.c143 unsigned int max_fds = 0; in task_state() local
159 max_fds = files_fdtable(p->files)->max_fds; in task_state()
183 max_fds); in task_state()
Dfd.c247 fd < files_fdtable(files)->max_fds; in proc_readfd_common()
/linux-4.1.27/Documentation/filesystems/
Dfiles.txt45 if (n <= fdt->max_fds)