Lines Matching refs:nfds
15 * of fds to overcome nfds < 16390 descriptors limit (Tigran Aivazian).
973 static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds,
984 unsigned long todo = nfds;
986 if (nfds > rlimit(RLIMIT_NOFILE))
989 len = min_t(unsigned int, nfds, N_STACK_PPS);
996 if (copy_from_user(walk->entries, ufds + nfds-todo,
1017 if (!user_write_access_begin(ufds, nfds * sizeof(*ufds)))
1049 int nfds = restart_block->poll.nfds;
1059 ret = do_sys_poll(ufds, nfds, to);
1067 SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds,
1079 ret = do_sys_poll(ufds, nfds, to);
1086 restart_block->poll.nfds = nfds;
1100 SYSCALL_DEFINE5(ppoll, struct pollfd __user *, ufds, unsigned int, nfds,
1120 ret = do_sys_poll(ufds, nfds, to);
1126 SYSCALL_DEFINE5(ppoll_time32, struct pollfd __user *, ufds, unsigned int, nfds,
1146 ret = do_sys_poll(ufds, nfds, to);
1399 unsigned int, nfds, struct old_timespec32 __user *, tsp,
1418 ret = do_sys_poll(ufds, nfds, to);
1425 unsigned int, nfds, struct __kernel_timespec __user *, tsp,
1444 ret = do_sys_poll(ufds, nfds, to);