Home
last modified time | relevance | path

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

/Linux-v4.19/tools/bpf/bpftool/
Dmap_perf_ring.c177 int i, nfds, map_fd, index = -1, cpu = -1; in do_event_pipe() local
238 nfds = 1; in do_event_pipe()
240 nfds = min(get_possible_cpus(), map_info.max_entries); in do_event_pipe()
245 rings = calloc(nfds, sizeof(rings[0])); in do_event_pipe()
249 pfds = calloc(nfds, sizeof(pfds[0])); in do_event_pipe()
253 for (i = 0; i < nfds; i++) { in do_event_pipe()
278 poll(pfds, nfds, 200); in do_event_pipe()
279 for (i = 0; i < nfds; i++) in do_event_pipe()
287 for (i = 0; i < nfds; i++) { in do_event_pipe()
/Linux-v4.19/fs/
Dselect.c926 static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, in do_sys_poll() argument
937 unsigned long todo = nfds; in do_sys_poll()
939 if (nfds > rlimit(RLIMIT_NOFILE)) in do_sys_poll()
942 len = min_t(unsigned int, nfds, N_STACK_PPS); in do_sys_poll()
949 if (copy_from_user(walk->entries, ufds + nfds-todo, in do_sys_poll()
994 int nfds = restart_block->poll.nfds; in do_restart_poll() local
1004 ret = do_sys_poll(ufds, nfds, to); in do_restart_poll()
1013 SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds, in SYSCALL_DEFINE3() argument
1025 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE3()
1033 restart_block->poll.nfds = nfds; in SYSCALL_DEFINE3()
[all …]
/Linux-v4.19/Documentation/media/uapi/cec/
Dcec-func-poll.rst23 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
32 ``nfds``
77 The ``nfds`` argument is greater than ``OPEN_MAX``.
/Linux-v4.19/tools/testing/selftests/x86/
Dtest_syscall_vdso.c179 int nfds; variable
192 nfds = 42; in prep_args()
/Linux-v4.19/Documentation/media/uapi/v4l/
Dfunc-select.rst25 .. c:function:: int select( int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct …
31 ``nfds``
114 The ``nfds`` argument is less than zero or greater than
Dfunc-poll.rst23 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
116 The ``nfds`` argument is greater than ``OPEN_MAX``.
/Linux-v4.19/arch/xtensa/include/asm/
Dsyscall.h24 asmlinkage long sys_ppoll(struct pollfd __user *ufds, unsigned int nfds,
/Linux-v4.19/include/linux/
Drestart_block.h50 int nfds; member
Dcompat.h648 unsigned int nfds,
Dsyscalls.h998 asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
/Linux-v4.19/samples/bpf/
Dxdpsock_user.c804 int i, ret, timeout, nfds = 1; in rx_drop_all() local
816 ret = poll(fds, nfds, timeout); in rx_drop_all()
828 int timeout, ret, nfds = 1; in tx_only() local
829 struct pollfd fds[nfds + 1]; in tx_only()
839 ret = poll(fds, nfds, timeout); in tx_only()
/Linux-v4.19/tools/perf/util/
Devlist.c437 int nfds = 0; in perf_evlist__alloc_pollfd() local
442 nfds += nr_cpus; in perf_evlist__alloc_pollfd()
444 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd()
447 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd()
448 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd()
/Linux-v4.19/arch/s390/kernel/
Dcompat_wrapper.c106 COMPAT_SYSCALL_WRAP3(poll, struct pollfd __user *, ufds, unsigned int, nfds, int, timeout);
/Linux-v4.19/drivers/misc/mic/scif/
Dscif_api.c1387 scif_poll(struct scif_pollepd *ufds, unsigned int nfds, long timeout_msecs) in scif_poll() argument
1399 for (i = 0; i < nfds; i++) { in scif_poll()