| /OK3568_Linux_fs/external/mpp/osal/ |
| H A D | mpp_eventfd.cpp | 45 struct pollfd nfds; in mpp_eventfd_read() local 51 nfds.fd = fd; in mpp_eventfd_read() 52 nfds.events = POLLIN; in mpp_eventfd_read() 54 ret = poll(&nfds, 1, timeout); in mpp_eventfd_read() 55 if (ret == 1 && (nfds.revents & POLLIN) && in mpp_eventfd_read()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/ |
| H A D | sock_server.c | 24 nfds_t nfds; member 77 for (n = 0; n < srvst->nfds; n++) { in server_add_state() 88 p = realloc(srvst->socks, sizeof(*srvst->socks) * (srvst->nfds + 1)); in server_add_state() 92 srvst->socks[srvst->nfds].cb = cb; in server_add_state() 93 srvst->socks[srvst->nfds].serv = serv; in server_add_state() 95 p = realloc(srvst->fds, sizeof(*srvst->fds) * (srvst->nfds + 1)); in server_add_state() 99 srvst->fds[srvst->nfds].fd = fd; in server_add_state() 100 srvst->fds[srvst->nfds].events = poll_events; in server_add_state() 101 srvst->fds[srvst->nfds].revents = 0; in server_add_state() 103 srvst->nfds++; in server_add_state() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/bench/ |
| H A 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() 237 w->fdmap = calloc(nfds, sizeof(int)); in do_threads() 241 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 …]
|
| H A 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… 323 w->fdmap = calloc(nfds, sizeof(int)); in do_threads() 327 for (j = 0; j < nfds; j++) { in do_threads() 388 shuffle((void *)w->fdmap, nfds, sizeof(int)); in writerfn() 391 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() 527 if (nfds == 1) in bench_epoll_wait() 533 &worker[i].fdmap[nfds-1], t); in bench_epoll_wait()
|
| /OK3568_Linux_fs/u-boot/tools/ |
| H A D | kwboot.c | 158 int rc, nfds; in kwboot_tty_recv() local 176 nfds = select(fd + 1, &rfds, NULL, NULL, &tv); in kwboot_tty_recv() 177 if (nfds < 0) in kwboot_tty_recv() 179 if (!nfds) { in kwboot_tty_recv() 534 int nfds = 0; in kwboot_terminal() local 537 nfds = nfds < tty ? tty : nfds; in kwboot_terminal() 541 nfds = nfds < in ? in : nfds; in kwboot_terminal() 544 nfds = select(nfds + 1, &rfds, NULL, NULL, NULL); in kwboot_terminal() 545 if (nfds < 0) in kwboot_terminal()
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/libtirpc/libtirpc/ |
| H A D | CVE-2021-46828.patch | 35 + int nfds = 0; 40 + nfds++; 43 + return (nfds); 82 + int sock, flags, nfds, cnt; 90 + nfds = svc_open_fds(); 91 + if (nfds >= (_rpc_dtablesize() / 5) * 4) {
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | select.c | 973 static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, in do_sys_poll() argument 984 unsigned long todo = nfds; in do_sys_poll() 986 if (nfds > rlimit(RLIMIT_NOFILE)) in do_sys_poll() 989 len = min_t(unsigned int, nfds, N_STACK_PPS); in do_sys_poll() 996 if (copy_from_user(walk->entries, ufds + nfds-todo, in do_sys_poll() 1017 if (!user_write_access_begin(ufds, nfds * sizeof(*ufds))) in do_sys_poll() 1049 int nfds = restart_block->poll.nfds; in do_restart_poll() local 1059 ret = do_sys_poll(ufds, nfds, to); in do_restart_poll() 1067 SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds, in SYSCALL_DEFINE3() argument 1079 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE3() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/vsock/ |
| H A 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()
|
| /OK3568_Linux_fs/external/xserver/include/ |
| H A D | xserver_poll.h | 32 #define xserver_poll(fds, nfds, timeout) poll(fds, nfds, timeout) argument
|
| /OK3568_Linux_fs/kernel/Documentation/userspace-api/media/mediactl/ |
| H A 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
|
| /OK3568_Linux_fs/kernel/Documentation/userspace-api/media/cec/ |
| H A 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
|
| /OK3568_Linux_fs/kernel/tools/lib/perf/ |
| H A D | evlist.c | 293 int nfds = 0; in perf_evlist__alloc_pollfd() local 298 nfds += nr_cpus; in perf_evlist__alloc_pollfd() 300 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd() 303 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd() 304 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd()
|
| /OK3568_Linux_fs/kernel/tools/include/nolibc/ |
| H A D | nolibc.h | 1636 int sys_poll(struct pollfd *fds, int nfds, int timeout) in sys_poll() argument 1638 return my_syscall3(__NR_poll, fds, nfds, timeout); in sys_poll() 1660 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() argument 1667 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout }; in sys_select() 1676 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select() 1681 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout); in sys_select() 2073 int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument 2075 int ret = sys_poll(fds, nfds, timeout); in poll() 2134 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in select() argument 2136 int ret = sys_select(nfds, rfds, wfds, efds, timeout); in select()
|
| /OK3568_Linux_fs/kernel/Documentation/userspace-api/media/v4l/ |
| H A 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
|
| H A 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
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/x86/ |
| H A D | test_syscall_vdso.c | 171 int nfds; variable 184 nfds = 42; in prep_args()
|
| /OK3568_Linux_fs/external/rkwifibt/tools/rtk_hciattach/ |
| H A D | hciattach_rtk.c | 989 int nfds; in start_transmit_wait() local 1027 nfds = epoll_wait(rtb_cfg.epollfd, events, MAX_EVENTS, msec); in start_transmit_wait() 1028 if (nfds == -1) { in start_transmit_wait() 1033 for (n = 0; n < nfds; ++n) { in start_transmit_wait() 1128 int nfds; in h5_download_patch() local 1212 nfds = epoll_wait(rtb_cfg.epollfd, events, MAX_EVENTS, -1); in h5_download_patch() 1213 if (nfds == -1) { in h5_download_patch() 1218 for (n = 0; n < nfds; ++n) { in h5_download_patch()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | restart_block.h | 50 int nfds; member
|
| H A D | compat.h | 579 unsigned int nfds, 584 unsigned int nfds,
|
| H A D | syscalls.h | 1135 asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-support/linux-atm/linux-atm/ |
| H A D | 0003-mpoad-Drop-old-hack-to-compile-with-very-old-glibc.patch | 29 -_syscall3(int,poll,struct pollfd *,ufds,unsigned int,nfds,int,timeout);
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/net/ |
| H A D | nettest.c | 945 int nfds; in msg_loop() local 966 nfds = interactive ? MAX(fileno(stdin), sd) + 1 : sd + 1; in msg_loop() 973 rc = select(nfds, &rfds, NULL, NULL, ptval); in msg_loop()
|