Lines Matching refs:nfds
963 static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, in do_sys_poll() argument
974 unsigned int todo = nfds; in do_sys_poll()
977 if (nfds > rlimit(RLIMIT_NOFILE)) in do_sys_poll()
980 len = min_t(unsigned int, nfds, N_STACK_PPS); in do_sys_poll()
987 if (copy_from_user(walk->entries, ufds + nfds-todo, in do_sys_poll()
1007 if (!user_write_access_begin(ufds, nfds * sizeof(*ufds))) in do_sys_poll()
1039 int nfds = restart_block->poll.nfds; in do_restart_poll() local
1046 ret = do_sys_poll(ufds, nfds, to); in do_restart_poll()
1054 SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds, in SYSCALL_DEFINE3() argument
1066 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE3()
1073 restart_block->poll.nfds = nfds; in SYSCALL_DEFINE3()
1086 SYSCALL_DEFINE5(ppoll, struct pollfd __user *, ufds, unsigned int, nfds, in SYSCALL_DEFINE5() argument
1106 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE5()
1112 SYSCALL_DEFINE5(ppoll_time32, struct pollfd __user *, ufds, unsigned int, nfds, in SYSCALL_DEFINE5() argument
1132 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE5()
1385 unsigned int, nfds, struct old_timespec32 __user *, tsp, in COMPAT_SYSCALL_DEFINE5() argument
1404 ret = do_sys_poll(ufds, nfds, to); in COMPAT_SYSCALL_DEFINE5()
1411 unsigned int, nfds, struct __kernel_timespec __user *, tsp, in COMPAT_SYSCALL_DEFINE5() argument
1430 ret = do_sys_poll(ufds, nfds, to); in COMPAT_SYSCALL_DEFINE5()