Home
last modified time | relevance | path

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

123

/openbmc/qemu/net/
H A Ddump.c156 NetFilterDumpState *nfds = FILTER_DUMP(nf); in filter_dump_receive_iov() local
168 dump_cleanup(&nfds->ds); in filter_dump_cleanup()
175 if (!nfds->filename) { in filter_dump_setup()
180 net_dump_state_init(&nfds->ds, nfds->filename, nfds->maxlen, errp); in filter_dump_setup()
187 uint32_t value = nfds->maxlen; in filter_dump_get_maxlen()
206 nfds->maxlen = value; in filter_dump_set_maxlen()
213 return g_strdup(nfds->filename); in file_dump_get_filename()
220 g_free(nfds->filename); in file_dump_set_filename()
221 nfds->filename = g_strdup(value); in file_dump_set_filename()
228 nfds->maxlen = 65536; in filter_dump_instance_init()
[all …]
/openbmc/qemu/hw/remote/
H A Dmpqemu-link.c40 size_t nfds = 0; in mpqemu_msg_send() local
50 nfds = msg->num_fds; in mpqemu_msg_send()
126 size_t nfds = 0; in mpqemu_msg_recv() local
157 msg->num_fds = nfds; in mpqemu_msg_recv()
158 if (nfds > G_N_ELEMENTS(msg->fds)) { in mpqemu_msg_recv()
161 nfds, REMOTE_MAX_FDS); in mpqemu_msg_recv()
164 if (nfds) { in mpqemu_msg_recv()
165 memcpy(msg->fds, fds, nfds * sizeof(int)); in mpqemu_msg_recv()
174 while (*errp && nfds) { in mpqemu_msg_recv()
175 close(fds[nfds - 1]); in mpqemu_msg_recv()
[all …]
H A Dtrace-events3 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 Dmainloop.c27 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/qemu/io/
H A Dchannel.c55 size_t *nfds, in qio_channel_readv_full() argument
61 if ((fds || nfds) && in qio_channel_readv_full()
83 size_t nfds, in qio_channel_writev_full() argument
89 if (fds || nfds) { in qio_channel_writev_full()
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()
190 if (nfds && fds) { in qio_channel_readv_full_all_eof()
192 for (i = 0; i < (*nfds); i++) { in qio_channel_readv_full_all_eof()
197 *nfds = 0; in qio_channel_readv_full_all_eof()
[all …]
H A Dchannel-socket.c460 *nfds = 0; in qio_channel_socket_copy_fds()
480 *fds = g_renew(int, *fds, *nfds + gotfds); 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()
566 size_t fdsize = sizeof(int) * nfds; in qio_channel_socket_writev()
575 if (nfds) { in qio_channel_socket_writev()
576 if (nfds > SOCKET_MAX_FDS) { in qio_channel_socket_writev()
[all …]
/openbmc/linux/tools/perf/bench/
H A Depoll-ctl.c60 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 Depoll-wait.c111 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()
478 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_wait()
486 getpid(), nthreads, oneshot ? " (EPOLLONESHOT semantics)": "", nfds, nsecs); in bench_epoll_wait()
540 if (nfds == 1) in bench_epoll_wait()
546 &worker[i].fdmap[nfds-1], t); in bench_epoll_wait()
/openbmc/qemu/util/
H A Dmain-loop.c416 int nfds = -1;
425 nfds = MAX(nfds, fd);
429 nfds = MAX(nfds, fd);
433 nfds = MAX(nfds, fd);
436 return nfds;
439 static void pollfds_poll(GArray *pollfds, int nfds, fd_set *rfds,
474 int nfds;
491 nfds = pollfds_fill(gpollfds, &rfds, &wfds, &xfds);
492 if (nfds >= 0) {
493 select_ret = select(nfds + 1, &rfds, &wfds, &xfds, &tv0);
[all …]
H A Dvhost-user-server.c119 size_t nfds = 0; in vu_message_read() local
126 rc = qio_channel_readv_full(ioc, &iov, 1, &fds, &nfds, 0, &local_err); in vu_message_read()
144 if (nfds > 0) { in vu_message_read()
145 if (vmsg->fd_num + nfds > max_fds) { in vu_message_read()
148 max_fds, vmsg->fd_num + nfds); in vu_message_read()
152 memcpy(vmsg->fds + vmsg->fd_num, fds, nfds * sizeof(vmsg->fds[0])); in vu_message_read()
153 vmsg->fd_num += nfds; in vu_message_read()
/openbmc/qemu/contrib/rdmacm-mux/
H A Dmain.c72 int nfds; member
515 server.fds[server.nfds].fd = fd; in accept_all()
517 server.nfds++; in accept_all()
532 for (i = 1; i < server.nfds; i++) { in compress_fds()
541 server.nfds -= closed; in compress_fds()
556 int rc, nfds, i; in run() local
574 nfds = server.nfds; in run()
575 for (i = 0; i < nfds; i++) { in run()
622 for (i = server.nfds - 1; i >= 0; i--) { in fini_listener()
715 server.nfds = 1; in init_listener()
[all …]
/openbmc/u-boot/tools/
H A Dkwboot.c158 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/include/io/
H A Dchannel.h114 size_t nfds,
121 size_t *nfds,
234 size_t *nfds,
278 size_t nfds,
819 int **fds, size_t *nfds,
845 int **fds, size_t *nfds,
879 int *fds, size_t nfds,
/openbmc/qemu/audio/
H A Dsndioaudio.c47 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/openbmc-tools/adcapp/src/
H A DEINTR_wrappers.h63 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 DEINTR_wrappers.c317 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/openbmc-tools/pwmtachtool/src/
H A DEINTR_wrappers.h63 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 DEINTR_wrappers.c290 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/linux/fs/
H A Dselect.c985 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()
1050 int nfds = restart_block->poll.nfds; in do_restart_poll() local
1060 ret = do_sys_poll(ufds, nfds, to); in do_restart_poll()
1080 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE3()
1087 restart_block->poll.nfds = nfds; in SYSCALL_DEFINE3()
1121 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE5()
1147 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE5()
1419 ret = do_sys_poll(ufds, nfds, to); in COMPAT_SYSCALL_DEFINE5()
[all …]
/openbmc/linux/tools/testing/vsock/
H 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()
/openbmc/linux/tools/include/nolibc/
H A Dsys.h832 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/Documentation/userspace-api/media/mediactl/
H 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
/openbmc/linux/Documentation/userspace-api/media/cec/
H 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
/openbmc/qemu/scsi/
H A Dpr-manager-helper.c72 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 Dlibqtest.h804 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,

123