/linux-6.6.21/tools/thermal/lib/ |
D | mainloop.c | 27 int i, nfds; in mainloop() local 36 nfds = epoll_wait(epfd, events, MAX_EVENTS, timeout); in mainloop() 38 if (exit_mainloop || !nfds) in mainloop() 41 if (nfds < 0) { in mainloop() 47 for (i = 0; i < nfds; i++) { in mainloop()
|
/linux-6.6.21/tools/perf/bench/ |
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 …]
|
D | epoll-wait.c | 111 static unsigned int nfds = 64; variable 130 …OPT_UINTEGER('f', "nfds", &nfds, "Specify amount of file descriptors to monitor for each threa… 330 w->fdmap = calloc(nfds, sizeof(int)); in do_threads() 334 for (j = 0; j < nfds; j++) { in do_threads() 401 shuffle((void *)w->fdmap, nfds, sizeof(int)); in writerfn() 404 for (j = 0; j < nfds; j++) { in writerfn() 478 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_wait() 486 getpid(), nthreads, oneshot ? " (EPOLLONESHOT semantics)": "", nfds, nsecs); in bench_epoll_wait() 540 if (nfds == 1) in bench_epoll_wait() 546 &worker[i].fdmap[nfds-1], t); in bench_epoll_wait()
|
/linux-6.6.21/fs/ |
D | select.c | 974 static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, in do_sys_poll() argument 985 unsigned long todo = nfds; in do_sys_poll() 987 if (nfds > rlimit(RLIMIT_NOFILE)) in do_sys_poll() 990 len = min_t(unsigned int, nfds, N_STACK_PPS); in do_sys_poll() 997 if (copy_from_user(walk->entries, ufds + nfds-todo, in do_sys_poll() 1018 if (!user_write_access_begin(ufds, nfds * sizeof(*ufds))) in do_sys_poll() 1050 int nfds = restart_block->poll.nfds; in do_restart_poll() local 1060 ret = do_sys_poll(ufds, nfds, to); in do_restart_poll() 1068 SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds, in SYSCALL_DEFINE3() argument 1080 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE3() [all …]
|
/linux-6.6.21/tools/include/nolibc/ |
D | sys.h | 832 int sys_poll(struct pollfd *fds, int nfds, int timeout) in sys_poll() argument 841 return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0); in sys_poll() 843 return my_syscall3(__NR_poll, fds, nfds, timeout); in sys_poll() 850 int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument 852 return __sysret(sys_poll(fds, nfds, timeout)); in poll() 914 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() argument 921 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout }; in sys_select() 930 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select() 935 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout); in sys_select() 942 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in select() argument [all …]
|
/linux-6.6.21/tools/testing/vsock/ |
D | util.c | 53 int epollfd, nfds; in vsock_wait_remote_close() local 68 nfds = epoll_wait(epollfd, &ev, 1, TIMEOUT * 1000); in vsock_wait_remote_close() 69 if (nfds == -1) { in vsock_wait_remote_close() 74 if (nfds == 0) { in vsock_wait_remote_close() 79 assert(nfds == 1); in vsock_wait_remote_close()
|
/linux-6.6.21/Documentation/userspace-api/media/mediactl/ |
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-6.6.21/Documentation/userspace-api/media/cec/ |
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-6.6.21/Documentation/userspace-api/media/v4l/ |
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
|
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-6.6.21/tools/testing/selftests/x86/ |
D | test_syscall_vdso.c | 171 int nfds; variable 184 nfds = 42; in prep_args()
|
/linux-6.6.21/tools/lib/perf/ |
D | evlist.c | 323 int nfds = 0; in perf_evlist__alloc_pollfd() local 328 nfds += nr_cpus; in perf_evlist__alloc_pollfd() 330 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd() 333 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd() 334 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd()
|
/linux-6.6.21/include/linux/ |
D | restart_block.h | 51 int nfds; member
|
D | compat.h | 653 unsigned int nfds, 658 unsigned int nfds,
|
D | syscalls.h | 1043 asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
|
/linux-6.6.21/tools/testing/selftests/net/ |
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()
|