Lines Matching refs:nfds
15 * of fds to overcome nfds < 16390 descriptors limit (Tigran Aivazian).
974 static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds,
985 unsigned long todo = nfds;
987 if (nfds > rlimit(RLIMIT_NOFILE))
990 len = min_t(unsigned int, nfds, N_STACK_PPS);
997 if (copy_from_user(walk->entries, ufds + nfds-todo,
1018 if (!user_write_access_begin(ufds, nfds * sizeof(*ufds)))
1050 int nfds = restart_block->poll.nfds;
1060 ret = do_sys_poll(ufds, nfds, to);
1068 SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds,
1080 ret = do_sys_poll(ufds, nfds, to);
1087 restart_block->poll.nfds = nfds;
1101 SYSCALL_DEFINE5(ppoll, struct pollfd __user *, ufds, unsigned int, nfds,
1121 ret = do_sys_poll(ufds, nfds, to);
1127 SYSCALL_DEFINE5(ppoll_time32, struct pollfd __user *, ufds, unsigned int, nfds,
1147 ret = do_sys_poll(ufds, nfds, to);
1400 unsigned int, nfds, struct old_timespec32 __user *, tsp,
1419 ret = do_sys_poll(ufds, nfds, to);
1426 unsigned int, nfds, struct __kernel_timespec __user *, tsp,
1445 ret = do_sys_poll(ufds, nfds, to);