Home
last modified time | relevance | path

Searched refs:nfds (Results 1 – 19 of 19) sorted by relevance

/linux-6.15/tools/thermal/lib/
H A Dmainloop.c24 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-6.15/tools/perf/bench/
H A Depoll-ctl.c60 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 …]
H A Depoll-wait.c111 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()
483 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_wait()
491 getpid(), nthreads, oneshot ? " (EPOLLONESHOT semantics)": "", nfds, nsecs); in bench_epoll_wait()
545 if (nfds == 1) in bench_epoll_wait()
551 &worker[i].fdmap[nfds-1], t); in bench_epoll_wait()
/linux-6.15/fs/
H A Dselect.c978 unsigned int todo = nfds; in do_sys_poll()
981 if (nfds > rlimit(RLIMIT_NOFILE)) in do_sys_poll()
984 len = min_t(unsigned int, nfds, N_STACK_PPS); in do_sys_poll()
1044 int nfds = restart_block->poll.nfds; in do_restart_poll() local
1054 ret = do_sys_poll(ufds, nfds, to); in do_restart_poll()
1074 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE3()
1081 restart_block->poll.nfds = nfds; in SYSCALL_DEFINE3()
1115 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE5()
1141 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE5()
1413 ret = do_sys_poll(ufds, nfds, to); in COMPAT_SYSCALL_DEFINE5()
[all …]
/linux-6.15/tools/include/nolibc/
H A Dsys.h886 int sys_poll(struct pollfd *fds, int nfds, int timeout) in sys_poll() argument
895 return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0); in sys_poll()
897 return my_syscall3(__NR_poll, fds, nfds, timeout); in sys_poll()
899 return __nolibc_enosys(__func__, fds, nfds, timeout); in sys_poll()
904 int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument
906 return __sysret(sys_poll(fds, nfds, timeout)); in poll()
1012 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout }; in sys_select()
1015 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout); in sys_select()
1017 return my_syscall5(__NR_select, nfds, rfds, wfds, efds, timeout); in sys_select()
1027 return __nolibc_enosys(__func__, nfds, rfds, wfds, efds, timeout); in sys_select()
[all …]
/linux-6.15/Documentation/userspace-api/media/mediactl/
H A Drequest-func-poll.rst22 .. 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.15/Documentation/userspace-api/media/cec/
H A Dcec-func-poll.rst22 .. 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.15/tools/testing/selftests/bpf/prog_tests/
H A Dtest_struct_ops_module.c255 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-6.15/tools/testing/selftests/net/
H A Dbusy_poller.c264 int i, epfd, nfds; in run_poller() local
312 nfds = epoll_wait(epfd, events, cfg_max_events, -1); in run_poller()
313 for (i = 0; i < nfds; i++) { in run_poller()
H A Dnettest.c1254 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-6.15/Documentation/userspace-api/media/v4l/
H A Dfunc-select.rst24 .. 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 Dfunc-poll.rst22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
112 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
/linux-6.15/tools/testing/selftests/x86/
H A Dtest_syscall_vdso.c171 int nfds; variable
184 nfds = 42; in prep_args()
/linux-6.15/tools/lib/perf/
H A Devlist.c343 int nfds = 0; in perf_evlist__alloc_pollfd() local
348 nfds += nr_cpus; in perf_evlist__alloc_pollfd()
350 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd()
353 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd()
354 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd()
/linux-6.15/tools/testing/vsock/
H A Dutil.c66 int epollfd, nfds; in vsock_wait_remote_close() local
81 nfds = epoll_wait(epollfd, &ev, 1, TIMEOUT * 1000); in vsock_wait_remote_close()
82 if (nfds == -1) { in vsock_wait_remote_close()
87 if (nfds == 0) { in vsock_wait_remote_close()
92 assert(nfds == 1); in vsock_wait_remote_close()
/linux-6.15/include/linux/
H A Drestart_block.h51 int nfds; member
H A Dcompat.h652 unsigned int nfds,
657 unsigned int nfds,
H A Dsyscalls.h1092 asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
/linux-6.15/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c957 int fd = ctx->pcap_fd, nfds, r; in traffic_monitor_thread() local
966 nfds = (fd > wake_fd ? fd : wake_fd) + 1; in traffic_monitor_thread()
972 r = select(nfds, &fds, NULL, NULL, NULL); in traffic_monitor_thread()