Home
last modified time | relevance | path

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

/linux/tools/perf/bench/
A Depoll-ctl.c59 static unsigned int nfds = 64; variable
76 OPT_UINTEGER('f', "nfds", &nfds, "Specify amount of file descriptors to monitor for each thread"),
164 fd = w->fdmap[rnd1 % nfds]; in do_random_epoll_op()
190 for (i = 0; i < nfds; i++) { in workerfn()
213 for (i = 0; i < nfds; i+=inc) { in init_fdmaps()
236 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
240 for (j = 0; j < nfds; j++) { in do_threads()
344 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_ctl()
352 getpid(), nthreads, nfds, nsecs); in bench_epoll_ctl()
396 if (nfds == 1) in bench_epoll_ctl()
[all …]
A Depoll-wait.c110 static unsigned int nfds = 64; variable
129 …OPT_UINTEGER('f', "nfds", &nfds, "Specify amount of file descriptors to monitor for each threa…
322 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
326 for (j = 0; j < nfds; j++) { in do_threads()
387 shuffle((void *)w->fdmap, nfds, sizeof(int)); in writerfn()
390 for (j = 0; j < nfds; j++) { in writerfn()
464 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_wait()
472 getpid(), nthreads, oneshot ? " (EPOLLONESHOT semantics)": "", nfds, nsecs); in bench_epoll_wait()
526 if (nfds == 1) in bench_epoll_wait()
532 &worker[i].fdmap[nfds-1], t); in bench_epoll_wait()
/linux/fs/
A Dselect.c981 unsigned long todo = nfds; in do_sys_poll()
983 if (nfds > rlimit(RLIMIT_NOFILE)) in do_sys_poll()
986 len = min_t(unsigned int, nfds, N_STACK_PPS); in do_sys_poll()
1046 int nfds = restart_block->poll.nfds; in do_restart_poll() local
1056 ret = do_sys_poll(ufds, nfds, to); in do_restart_poll()
1076 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE3()
1083 restart_block->poll.nfds = nfds; in SYSCALL_DEFINE3()
1117 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE5()
1143 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE5()
1415 ret = do_sys_poll(ufds, nfds, to); in COMPAT_SYSCALL_DEFINE5()
[all …]
/linux/tools/testing/vsock/
A Dutil.c53 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/Documentation/userspace-api/media/mediactl/
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/Documentation/userspace-api/media/cec/
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/tools/lib/perf/
A Devlist.c299 int nfds = 0; in perf_evlist__alloc_pollfd() local
304 nfds += nr_cpus; in perf_evlist__alloc_pollfd()
306 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd()
309 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd()
310 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd()
/linux/tools/include/nolibc/
A Dnolibc.h1644 int sys_poll(struct pollfd *fds, int nfds, int timeout) in sys_poll() argument
1653 return my_syscall4(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL); in sys_poll()
1655 return my_syscall3(__NR_poll, fds, nfds, timeout); in sys_poll()
1680 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() argument
1687 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout }; in sys_select()
1696 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select()
1701 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout); in sys_select()
2139 int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument
2141 int ret = sys_poll(fds, nfds, timeout); in poll()
2200 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in select() argument
[all …]
/linux/Documentation/userspace-api/media/v4l/
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
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/tools/testing/selftests/x86/
A Dtest_syscall_vdso.c171 int nfds; variable
184 nfds = 42; in prep_args()
/linux/include/linux/
A Drestart_block.h51 int nfds; member
A Dcompat.h641 unsigned int nfds,
646 unsigned int nfds,
A Dsyscalls.h1159 asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
/linux/tools/testing/selftests/net/
A Dnettest.c1177 int nfds; in msg_loop() local
1198 nfds = interactive ? MAX(fileno(stdin), sd) + 1 : sd + 1; in msg_loop()
1205 rc = select(nfds, &rfds, NULL, NULL, ptval); in msg_loop()

Completed in 32 milliseconds