/openbmc/qemu/net/ |
H A D | dump.c | 156 NetFilterDumpState *nfds = FILTER_DUMP(nf); in filter_dump_receive_iov() local 158 dump_receive_iov(&nfds->ds, iov, iovcnt, flags & QEMU_NET_PACKET_FLAG_RAW ? in filter_dump_receive_iov() 165 NetFilterDumpState *nfds = FILTER_DUMP(nf); in filter_dump_cleanup() local 167 dump_cleanup(&nfds->ds); in filter_dump_cleanup() 172 NetFilterDumpState *nfds = FILTER_DUMP(nf); in filter_dump_setup() local 174 if (!nfds->filename) { in filter_dump_setup() 179 net_dump_state_init(&nfds->ds, nfds->filename, nfds->maxlen, errp); in filter_dump_setup() 185 NetFilterDumpState *nfds = FILTER_DUMP(obj); in filter_dump_get_maxlen() local 186 uint32_t value = nfds->maxlen; in filter_dump_get_maxlen() 194 NetFilterDumpState *nfds = FILTER_DUMP(obj); in filter_dump_set_maxlen() local [all …]
|
/openbmc/qemu/hw/remote/ |
H A D | mpqemu-link.c | 40 size_t nfds = 0; in mpqemu_msg_send() local 50 nfds = msg->num_fds; in mpqemu_msg_send() 71 fds, nfds, 0, errp)) { in mpqemu_msg_send() 74 trace_mpqemu_send_io_error(msg->cmd, msg->size, nfds); in mpqemu_msg_send() 96 size_t *nfds, Error **errp) in mpqemu_read() argument 113 ret = qio_channel_readv_full_all_eof(ioc, &iov, 1, fds, nfds, errp); in mpqemu_read() 126 size_t nfds = 0; in mpqemu_msg_recv() local 130 len = mpqemu_read(ioc, msg, MPQEMU_MSG_HDR_SIZE, &fds, &nfds, errp); in mpqemu_msg_recv() 157 msg->num_fds = nfds; in mpqemu_msg_recv() 158 if (nfds > G_N_ELEMENTS(msg->fds)) { in mpqemu_msg_recv() [all …]
|
H A D | trace-events | 3 mpqemu_send_io_error(int cmd, int size, int nfds) "send command %d size %d, %d file descriptors to … 4 mpqemu_recv_io_error(int cmd, int size, int nfds) "failed to receive %d size %d, %d file descriptor…
|
/openbmc/linux/tools/thermal/lib/ |
H A D | mainloop.c | 27 int i, nfds; in mainloop() local 36 nfds = epoll_wait(epfd, events, MAX_EVENTS, timeout); in mainloop() 38 if (exit_mainloop || !nfds) in mainloop() 41 if (nfds < 0) { in mainloop() 47 for (i = 0; i < nfds; i++) { in mainloop()
|
/openbmc/linux/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() 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 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… 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()
|
/openbmc/qemu/util/ |
H A D | main-loop.c | 413 int nfds = -1; 422 nfds = MAX(nfds, fd); 426 nfds = MAX(nfds, fd); 430 nfds = MAX(nfds, fd); 433 return nfds; 436 static void pollfds_poll(GArray *pollfds, int nfds, fd_set *rfds, 471 int nfds; 488 nfds = pollfds_fill(gpollfds, &rfds, &wfds, &xfds); 489 if (nfds >= 0) { 490 select_ret = select(nfds + 1, &rfds, &wfds, &xfds, &tv0); [all …]
|
H A D | vhost-user-server.c | 131 size_t nfds = 0; in vu_message_read() local 138 rc = qio_channel_readv_full(ioc, &iov, 1, &fds, &nfds, 0, &local_err); in vu_message_read() 156 if (nfds > 0) { in vu_message_read() 157 if (vmsg->fd_num + nfds > max_fds) { in vu_message_read() 160 max_fds, vmsg->fd_num + nfds); in vu_message_read() 164 memcpy(vmsg->fds + vmsg->fd_num, fds, nfds * sizeof(vmsg->fds[0])); in vu_message_read() 165 vmsg->fd_num += nfds; in vu_message_read()
|
/openbmc/qemu/io/ |
H A D | channel.c | 55 size_t *nfds, in qio_channel_readv_full() argument 61 if ((fds || nfds) && in qio_channel_readv_full() 75 return klass->io_readv(ioc, iov, niov, fds, nfds, flags, errp); in qio_channel_readv_full() 83 size_t nfds, in qio_channel_writev_full() argument 89 if (fds || nfds) { in qio_channel_writev_full() 109 return klass->io_writev(ioc, iov, niov, fds, nfds, flags, errp); in qio_channel_writev_full() 132 int **fds, size_t *nfds, in qio_channel_readv_full_all_eof() argument 140 size_t *local_nfds = nfds; in qio_channel_readv_full_all_eof() 143 if (nfds) { in qio_channel_readv_full_all_eof() 144 *nfds = 0; in qio_channel_readv_full_all_eof() [all …]
|
H A D | channel-socket.c | 456 int **fds, size_t *nfds) in qio_channel_socket_copy_fds() argument 460 *nfds = 0; in qio_channel_socket_copy_fds() 480 *fds = g_renew(int, *fds, *nfds + gotfds); in qio_channel_socket_copy_fds() 481 memcpy(*fds + *nfds, CMSG_DATA(cmsg), fd_size); in qio_channel_socket_copy_fds() 484 int fd = (*fds)[*nfds + i]; in qio_channel_socket_copy_fds() 496 *nfds += gotfds; in qio_channel_socket_copy_fds() 505 size_t *nfds, in qio_channel_socket_readv() argument 519 if (fds && nfds) { in qio_channel_socket_readv() 547 if (fds && nfds) { in qio_channel_socket_readv() 548 qio_channel_socket_copy_fds(&msg, fds, nfds); in qio_channel_socket_readv() [all …]
|
/openbmc/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() 540 int nfds = 0; in kwboot_terminal() local 543 nfds = nfds < tty ? tty : nfds; in kwboot_terminal() 547 nfds = nfds < in ? in : nfds; in kwboot_terminal() 550 nfds = select(nfds + 1, &rfds, NULL, NULL, NULL); in kwboot_terminal() 551 if (nfds < 0) in kwboot_terminal()
|
/openbmc/qemu/audio/ |
H A D | sndioaudio.c | 47 unsigned int nfds; member 68 for (i = 0; i < self->nfds; i++) { in sndio_poll_clear() 73 self->nfds = 0; in sndio_poll_clear() 155 self->nfds = sio_pollfd(self->hdl, self->pfds, events); in sndio_poll_wait() 157 for (i = 0; i < self->nfds; i++) { in sndio_poll_wait() 334 int i, nfds; in sndio_init() local 429 nfds = sio_nfds(self->hdl); in sndio_init() 431 self->pfds = g_malloc_n(nfds, sizeof(struct pollfd)); in sndio_init() 437 self->pindexes = g_malloc_n(nfds, sizeof(struct pollindex)); in sndio_init() 443 for (i = 0; i < nfds; i++) { in sndio_init()
|
/openbmc/qemu/include/io/ |
H A D | channel.h | 115 size_t nfds, 122 size_t *nfds, 248 size_t *nfds, 292 size_t nfds, 905 int **fds, size_t *nfds, 931 int **fds, size_t *nfds, 965 int *fds, size_t nfds,
|
/openbmc/openbmc-tools/pwmtachtool/src/ |
H A D | EINTR_wrappers.h | 63 int sigwrap_poll(struct pollfd *fds, nfds_t nfds, int timeout); 64 int sigwrap_ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *tmo_p, const sigset_t *s… 65 int sigwrap_select(int nfds, fd_set *readfds, fd_set *writefds,fd_set *exceptfds, struct timeval *… 66 int sigwrap_pselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct t…
|
H A D | EINTR_wrappers.c | 290 int sigwrap_poll(struct pollfd *fds, nfds_t nfds, int timeout) in sigwrap_poll() argument 306 int Result = poll(fds, nfds, timeout); in sigwrap_poll() 326 int sigwrap_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *… in sigwrap_select() argument 330 int Result = select(nfds, readfds, writefds, exceptfds, timeout); in sigwrap_select() 341 int sigwrap_pselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct ti… in sigwrap_pselect() argument 354 int Result = pselect(nfds, readfds, writefds, exceptfds, timeout, sigmask); in sigwrap_pselect()
|
/openbmc/openbmc-tools/adcapp/src/ |
H A D | EINTR_wrappers.h | 63 int sigwrap_poll(struct pollfd *fds, nfds_t nfds, int timeout); 64 int sigwrap_ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *tmo_p, const sigset_t *s… 65 int sigwrap_select(int nfds, fd_set *readfds, fd_set *writefds,fd_set *exceptfds, struct timeval *… 66 int sigwrap_pselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct t…
|
H A D | EINTR_wrappers.c | 317 int sigwrap_poll(struct pollfd *fds, nfds_t nfds, int timeout) in sigwrap_poll() argument 333 int Result = poll(fds, nfds, timeout); in sigwrap_poll() 354 int sigwrap_ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *tmo_p, const sigset_t *si… 366 int Result = ppoll(fds, nfds, tmo_p, sigmask); 383 int sigwrap_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *… in sigwrap_select() argument 387 int Result = select(nfds, readfds, writefds, exceptfds, timeout); in sigwrap_select() 398 int sigwrap_pselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct ti… in sigwrap_pselect() argument 411 int Result = pselect(nfds, readfds, writefds, exceptfds, timeout, sigmask); in sigwrap_pselect()
|
/openbmc/linux/fs/ |
H A D | select.c | 974 static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, in do_sys_poll() argument 985 unsigned long todo = nfds; in do_sys_poll() 987 if (nfds > rlimit(RLIMIT_NOFILE)) in do_sys_poll() 990 len = min_t(unsigned int, nfds, N_STACK_PPS); in do_sys_poll() 997 if (copy_from_user(walk->entries, ufds + nfds-todo, in do_sys_poll() 1018 if (!user_write_access_begin(ufds, nfds * sizeof(*ufds))) in do_sys_poll() 1050 int nfds = restart_block->poll.nfds; in do_restart_poll() local 1060 ret = do_sys_poll(ufds, nfds, to); in do_restart_poll() 1068 SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds, in SYSCALL_DEFINE3() argument 1080 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE3() [all …]
|
/openbmc/linux/tools/include/nolibc/ |
H A D | sys.h | 832 int sys_poll(struct pollfd *fds, int nfds, int timeout) in sys_poll() argument 841 return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0); in sys_poll() 843 return my_syscall3(__NR_poll, fds, nfds, timeout); in sys_poll() 850 int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument 852 return __sysret(sys_poll(fds, nfds, timeout)); in poll() 914 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() argument 921 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout }; in sys_select() 930 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select() 935 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout); in sys_select() 942 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in select() argument [all …]
|
/openbmc/linux/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()
|
/openbmc/linux/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
|
/openbmc/linux/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
|
/openbmc/qemu/scsi/ |
H A D | pr-manager-helper.c | 72 size_t nfds = (fd != -1); in pr_manager_helper_write() local 80 nfds ? &fd : NULL, nfds, 0, errp); in pr_manager_helper_write() 90 nfds = 0; in pr_manager_helper_write()
|
/openbmc/qemu/tests/qtest/ |
H A D | libqtest.h | 804 QDict *qtest_vqmp_fds_assert_success_ref(QTestState *qts, int *fds, size_t nfds, 821 void qtest_vqmp_fds_assert_success(QTestState *qts, int *fds, size_t nfds, 894 QDict *qtest_qmp_fds_assert_success_ref(QTestState *qts, int *fds, size_t nfds, 910 void qtest_qmp_fds_assert_success(QTestState *qts, int *fds, size_t nfds,
|
/openbmc/phosphor-ipmi-flash/internal/ |
H A D | sys.cpp | 91 int SysImpl::poll(struct pollfd* fds, nfds_t nfds, int timeout) const in poll() argument 93 return ::poll(fds, nfds, timeout); in poll()
|