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 int todo = nfds;
988 if (nfds > rlimit(RLIMIT_NOFILE))
991 len = min_t(unsigned int, nfds, N_STACK_PPS);
998 if (copy_from_user(walk->entries, ufds + nfds-todo,
1019 if (!user_write_access_begin(ufds, nfds * sizeof(*ufds)))
1051 int nfds = restart_block->poll.nfds;
1061 ret = do_sys_poll(ufds, nfds, to);
1069 SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds,
1081 ret = do_sys_poll(ufds, nfds, to);
1088 restart_block->poll.nfds = nfds;
1102 SYSCALL_DEFINE5(ppoll, struct pollfd __user *, ufds, unsigned int, nfds,
1122 ret = do_sys_poll(ufds, nfds, to);
1128 SYSCALL_DEFINE5(ppoll_time32, struct pollfd __user *, ufds, unsigned int, nfds,
1148 ret = do_sys_poll(ufds, nfds, to);
1401 unsigned int, nfds, struct old_timespec32 __user *, tsp,
1420 ret = do_sys_poll(ufds, nfds, to);
1427 unsigned int, nfds, struct __kernel_timespec __user *, tsp,
1446 ret = do_sys_poll(ufds, nfds, to);