| /linux/tools/include/nolibc/sys/ |
| H A D | select.h | 59 * int select(int nfds, fd_set *read_fds, fd_set *write_fds, 64 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() argument 73 return my_syscall6(__NR_pselect6_time64, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select() 81 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select() 86 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() 88 return __sysret(sys_select(nfds, rfds, wfds, efds, timeout)); in sys_select() 97 select(int nfds,fd_set * rfds,fd_set * wfds,fd_set * efds,struct timeval * timeout) select() argument
|
| /linux/tools/thermal/lib/ |
| H A D | mainloop.c | 24 int i, nfds; in mainloop() local 33 nfds = epoll_wait(epfd, events, MAX_EVENTS, timeout); in mainloop() 35 if (exit_mainloop || !nfds) in mainloop() 38 if (nfds < 0) { in mainloop() 44 for (i = 0; i < nfds; i++) { in mainloop()
|
| /linux/tools/perf/bench/ |
| H A D | epoll-ctl.c | 60 static unsigned int nfds = 64; variable 77 OPT_UINTEGER('f', "nfds", &nfds, "Specify amount of file descriptors to monitor for each thread"), 165 fd = w->fdmap[rnd1 % nfds]; in do_random_epoll_op() 191 for (i = 0; i < nfds; i++) { in workerfn() 214 for (i = 0; i < nfds; i+=inc) { in init_fdmaps() 244 w->fdmap = calloc(nfds, sizeof(int)); in do_threads() 248 for (j = 0; j < nfds; j++) { in do_threads() 358 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_ctl() 366 getpid(), nthreads, nfds, nsecs); in bench_epoll_ctl() 410 if (nfds == 1) in bench_epoll_ctl() [all …]
|
| /linux/fs/ |
| H A D | select.c | 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() [all …]
|
| /linux/Documentation/userspace-api/media/mediactl/ |
| H A D | request-func-poll.rst | 22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout ) 30 ``nfds`` 72 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
|
| /linux/Documentation/userspace-api/media/cec/ |
| H A D | cec-func-poll.rst | 22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout ) 30 ``nfds`` 73 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_struct_ops_module.c | 255 int fd, epollfd = -1, nfds; in test_detach_link() local 285 nfds = epoll_wait(epollfd, events, 2, 500); in test_detach_link() 286 if (!ASSERT_EQ(nfds, 1, "epoll_wait")) in test_detach_link()
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | func-select.rst | 24 .. c:function:: int select( int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct … 29 ``nfds`` 110 The ``nfds`` argument is less than zero or greater than
|
| H A D | func-poll.rst | 22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout ) 112 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
|
| /linux/tools/testing/selftests/x86/ |
| H A D | test_syscall_vdso.c | 171 int nfds; variable 184 nfds = 42; in prep_args()
|
| /linux/tools/testing/vsock/ |
| H A D | util.c | 72 int epollfd, nfds; in vsock_wait_remote_close() local 87 nfds = epoll_wait(epollfd, &ev, 1, TIMEOUT * 1000); in vsock_wait_remote_close() 88 if (nfds == -1) { in vsock_wait_remote_close() 93 if (nfds == 0) { in vsock_wait_remote_close() 98 assert(nfds == 1); in vsock_wait_remote_close()
|
| /linux/tools/lib/perf/ |
| H A D | evlist.c | 414 int nfds = 0; in perf_evlist__alloc_pollfd() local 419 nfds += nr_cpus; in perf_evlist__alloc_pollfd() 421 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd() 424 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd() 425 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | network_helpers.c | 1006 int fd = ctx->pcap_fd, nfds, r; in traffic_monitor_thread() local 1015 nfds = (fd > wake_fd ? fd : wake_fd) + 1; in traffic_monitor_thread() 1021 r = select(nfds, &fds, NULL, NULL, NULL); in traffic_monitor_thread()
|
| /linux/tools/testing/selftests/net/ |
| H A D | nettest.c | 1254 int nfds; in msg_loop() local 1275 nfds = interactive ? MAX(fileno(stdin), sd) + 1 : sd + 1; in msg_loop() 1282 rc = select(nfds, &rfds, NULL, NULL, ptval); in msg_loop()
|
| /linux/include/linux/ |
| H A D | syscalls.h | 1105 asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
|