/Linux-v5.4/tools/perf/bench/ |
D | epoll-ctl.c | 61 static unsigned int nfds = 64; variable 78 OPT_UINTEGER('f', "nfds", &nfds, "Specify amount of file descriptors to monitor for each thread"), 166 fd = w->fdmap[rnd1 % nfds]; in do_random_epoll_op() 192 for (i = 0; i < nfds; i++) { in workerfn() 215 for (i = 0; i < nfds; i+=inc) { in init_fdmaps() 238 w->fdmap = calloc(nfds, sizeof(int)); in do_threads() 242 for (j = 0; j < nfds; j++) { in do_threads() 345 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_ctl() 353 getpid(), nthreads, nfds, nsecs); in bench_epoll_ctl() 397 if (nfds == 1) in bench_epoll_ctl() [all …]
|
D | epoll-wait.c | 112 static unsigned int nfds = 64; variable 131 …OPT_UINTEGER('f', "nfds", &nfds, "Specify amount of file descriptors to monitor for each threa… 324 w->fdmap = calloc(nfds, sizeof(int)); in do_threads() 328 for (j = 0; j < nfds; j++) { in do_threads() 389 shuffle((void *)w->fdmap, nfds, sizeof(int)); in writerfn() 392 for (j = 0; j < nfds; j++) { in writerfn() 465 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_wait() 473 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-v5.4/fs/ |
D | select.c | 960 static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, in do_sys_poll() argument 971 unsigned long todo = nfds; in do_sys_poll() 973 if (nfds > rlimit(RLIMIT_NOFILE)) in do_sys_poll() 976 len = min_t(unsigned int, nfds, N_STACK_PPS); in do_sys_poll() 983 if (copy_from_user(walk->entries, ufds + nfds-todo, in do_sys_poll() 1028 int nfds = restart_block->poll.nfds; in do_restart_poll() local 1038 ret = do_sys_poll(ufds, nfds, to); in do_restart_poll() 1047 SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds, in SYSCALL_DEFINE3() argument 1059 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE3() 1067 restart_block->poll.nfds = nfds; in SYSCALL_DEFINE3() [all …]
|
/Linux-v5.4/tools/perf/lib/ |
D | evlist.c | 250 int nfds = 0; in perf_evlist__alloc_pollfd() local 255 nfds += nr_cpus; in perf_evlist__alloc_pollfd() 257 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd() 260 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd() 261 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd()
|
/Linux-v5.4/Documentation/media/uapi/cec/ |
D | cec-func-poll.rst | 30 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout ) 39 ``nfds`` 84 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
|
/Linux-v5.4/Documentation/media/uapi/mediactl/ |
D | request-func-poll.rst | 47 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout ) 56 ``nfds`` 100 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
|
/Linux-v5.4/tools/testing/selftests/x86/ |
D | test_syscall_vdso.c | 171 int nfds; variable 184 nfds = 42; in prep_args()
|
/Linux-v5.4/tools/include/nolibc/ |
D | nolibc.h | 1625 int sys_poll(struct pollfd *fds, int nfds, int timeout) in sys_poll() argument 1627 return my_syscall3(__NR_poll, fds, nfds, timeout); in sys_poll() 1649 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() argument 1656 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout }; in sys_select() 1665 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select() 1670 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout); in sys_select() 2062 int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument 2064 int ret = sys_poll(fds, nfds, timeout); in poll() 2123 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in select() argument 2125 int ret = sys_select(nfds, rfds, wfds, efds, timeout); in select()
|
/Linux-v5.4/include/linux/ |
D | restart_block.h | 50 int nfds; member
|
D | compat.h | 625 unsigned int nfds, 630 unsigned int nfds,
|
D | syscalls.h | 1102 asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
|
/Linux-v5.4/Documentation/media/uapi/v4l/ |
D | func-select.rst | 32 .. c:function:: int select( int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct … 38 ``nfds`` 121 The ``nfds`` argument is less than zero or greater than
|
D | func-poll.rst | 30 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout ) 123 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
|
/Linux-v5.4/tools/testing/selftests/net/ |
D | nettest.c | 925 int nfds; in msg_loop() local 946 nfds = interactive ? MAX(fileno(stdin), sd) + 1 : sd + 1; in msg_loop() 953 rc = select(nfds, &rfds, NULL, NULL, ptval); in msg_loop()
|
/Linux-v5.4/drivers/misc/mic/scif/ |
D | scif_api.c | 1378 scif_poll(struct scif_pollepd *ufds, unsigned int nfds, long timeout_msecs) in scif_poll() argument 1390 for (i = 0; i < nfds; i++) { in scif_poll()
|