Home
last modified time | relevance | path

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

/linux-3.4.99/fs/
Dfile.c94 if (fdt->max_fds <= NR_OPEN_DEFAULT) { in free_fdtable_rcu()
127 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
129 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
130 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
134 cpy = ofdt->max_fds / BITS_PER_BYTE; in copy_fdtable()
135 set = (nfdt->max_fds - ofdt->max_fds) / BITS_PER_BYTE; in copy_fdtable()
171 fdt->max_fds = nr; in alloc_fdtable()
218 if (unlikely(new_fdt->max_fds <= nr)) { in expand_fdtable()
227 if (nr >= cur_fdt->max_fds) { in expand_fdtable()
231 if (cur_fdt->max_fds > NR_OPEN_DEFAULT) in expand_fdtable()
[all …]
Dselect.c523 int ret, max_fds; in core_sys_select() local
536 max_fds = fdt->max_fds; in core_sys_select()
538 if (n > max_fds) in core_sys_select()
539 n = max_fds; in core_sys_select()
Dcompat.c1447 int size, max_fds, ret = -EINVAL; in compat_core_sys_select() local
1457 max_fds = fdt->max_fds; in compat_core_sys_select()
1459 if (n > max_fds) in compat_core_sys_select()
1460 n = max_fds; in compat_core_sys_select()
Dopen.c1078 if (fd >= fdt->max_fds) in SYSCALL_DEFINE1()
Dexec.c1032 if (i >= fdt->max_fds) in flush_old_files()
/linux-3.4.99/include/linux/
Dfdtable.h25 unsigned int max_fds; member
110 if (fd < fdt->max_fds) in fcheck_files()
/linux-3.4.99/arch/powerpc/platforms/cell/spufs/
Dcoredump.c124 for (; *fd < fdt->max_fds; (*fd)++) { in coredump_next_context()
/linux-3.4.99/arch/mips/kernel/
Dkspd.c327 if (i >= fdt->max_fds) in sp_cleanup()
/linux-3.4.99/Documentation/filesystems/
Dfiles.txt45 if (n <= fdt->max_fds)
/linux-3.4.99/fs/proc/
Darray.c201 fdt ? fdt->max_fds : 0); in task_state()
Dbase.c1930 fd < files_fdtable(files)->max_fds; in proc_readfd_common()
/linux-3.4.99/kernel/
Dexit.c475 if (i >= fdt->max_fds) in close_files()
/linux-3.4.99/drivers/staging/android/
Dbinder.c384 fd = find_next_zero_bit(fdt->open_fds, fdt->max_fds, files->next_fd); in task_get_unused_fd_flags()
477 if (fd >= fdt->max_fds) in task_close_fd()
/linux-3.4.99/drivers/tty/
Dtty_io.c2864 for (i = 0; i < fdt->max_fds; i++) { in __do_SAK()
/linux-3.4.99/security/selinux/
Dhooks.c2202 if (i >= fdt->max_fds) in flush_unauthorized_files()