/openbmc/qemu/tests/qtest/ |
H A D | libqmp.c | 99 static void socket_send_fds(int socket_fd, int *fds, size_t fds_num, in socket_send_fds() argument 105 size_t fdsize = sizeof(int) * fds_num; in socket_send_fds() 112 if (fds && fds_num > 0) { in socket_send_fds() 113 g_assert_cmpuint(fds_num, <, SOCKET_MAX_FDS); in socket_send_fds() 138 _qmp_fd_vsend_fds(int fd, int *fds, size_t fds_num, in _qmp_fd_vsend_fds() argument 144 assert(fds_num == 0); in _qmp_fd_vsend_fds() 167 if (fds && fds_num > 0) { in _qmp_fd_vsend_fds() 168 socket_send_fds(fd, fds, fds_num, str->str, str->len); in _qmp_fd_vsend_fds() 181 void qmp_fd_vsend_fds(int fd, int *fds, size_t fds_num, in qmp_fd_vsend_fds() argument 184 _qmp_fd_vsend_fds(fd, fds, fds_num, fmt, ap); in qmp_fd_vsend_fds()
|
H A D | vhost-user-test.c | 160 int fds_num; member 252 while (!s->fds_num) { in wait_for_fds() 255 g_assert(s->fds_num); in wait_for_fds() 261 g_assert_cmpint(s->fds_num, >, 0); in wait_for_fds() 262 g_assert_cmpint(s->fds_num, ==, s->memory.nregions); in wait_for_fds() 289 for (i = 0; i < s->fds_num; i++) { in read_guest_mem_server() 456 s->fds_num = qemu_chr_fe_get_msgfds(chr, s->fds, in chr_read() 661 for (i = 0; i < server->fds_num; i++) { in test_server_free() 702 for (i = 0; i < s->fds_num; i++) { in write_guest_mem() 973 s->fds_num = 0; in test_reconnect()
|
H A D | libqtest.h | 131 QDict *qtest_qmp_fds(QTestState *s, int *fds, size_t fds_num, 192 QDict *qtest_vqmp_fds(QTestState *s, int *fds, size_t fds_num, 223 void qtest_qmp_vsend_fds(QTestState *s, int *fds, size_t fds_num,
|
H A D | libqmp.h | 25 void qmp_fd_vsend_fds(int fd, int *fds, size_t fds_num,
|
H A D | libqtest.c | 779 void qtest_qmp_vsend_fds(QTestState *s, int *fds, size_t fds_num, in qtest_qmp_vsend_fds() argument 782 qmp_fd_vsend_fds(s->qmp_fd, fds, fds_num, fmt, ap); in qtest_qmp_vsend_fds() 792 QDict *qtest_vqmp_fds(QTestState *s, int *fds, size_t fds_num, in qtest_vqmp_fds() argument 795 qtest_qmp_vsend_fds(s, fds, fds_num, fmt, ap); in qtest_vqmp_fds() 811 QDict *qtest_qmp_fds(QTestState *s, int *fds, size_t fds_num, in qtest_qmp_fds() argument 818 response = qtest_vqmp_fds(s, fds, fds_num, fmt, ap); in qtest_qmp_fds()
|
/openbmc/linux/arch/um/os-Linux/ |
H A D | file.c | 647 unsigned int fds_num) in os_sendmsg_fds() argument 657 unsigned int fds_size = sizeof(*fds) * fds_num; in os_sendmsg_fds() 667 if (fds_num > OS_SENDMSG_MAX_FDS) in os_sendmsg_fds()
|
/openbmc/linux/arch/um/include/shared/ |
H A D | os.h | 180 const int *fds, unsigned int fds_num);
|
/openbmc/linux/arch/um/drivers/ |
H A D | virtio_uml.c | 82 const int *fds, unsigned int fds_num) in full_sendmsg_fds() argument 87 rc = os_sendmsg_fds(fd, buf, len, fds, fds_num); in full_sendmsg_fds() 92 fds_num = 0; in full_sendmsg_fds()
|