Searched refs:kick_fd (Results 1 – 5 of 5) sorted by relevance
| /devicemodel/core/ |
| A D | vm_event.c | 61 int kick_fd; member 327 eventfd_read(tunnel->kick_fd, &val); in vm_event_thread() 368 int kick_fd = -1; in create_event_tunnel() local 381 kick_fd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); in create_event_tunnel() 382 if (kick_fd < 0) { in create_event_tunnel() 397 error = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, kick_fd, &ev); in create_event_tunnel() 403 tunnel->kick_fd = kick_fd; in create_event_tunnel() 410 if (kick_fd >= 0) { in create_event_tunnel() 411 close(kick_fd); in create_event_tunnel() 419 close(tunnel->kick_fd); in destory_event_tunnel() [all …]
|
| /devicemodel/hw/pci/virtio/ |
| A D | vhost.c | 199 virtio_register_ioeventfd(base, idx, is_register, vq->kick_fd); in vhost_vq_register_eventfd() 234 vq->kick_fd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); in vhost_vq_init() 235 if (vq->kick_fd < 0) { in vhost_vq_init() 251 close(vq->kick_fd); in vhost_vq_init() 253 vq->kick_fd = -1; in vhost_vq_init() 270 if (vq->kick_fd > 0) { in vhost_vq_deinit() 271 close(vq->kick_fd); in vhost_vq_deinit() 272 vq->kick_fd = -1; in vhost_vq_deinit() 314 vhost_eventfd_test_and_clear(vq->kick_fd); in vhost_vq_start() 366 file.fd = vq->kick_fd; in vhost_vq_start()
|
| A D | virtio.c | 101 vq->viothrd.kick_fd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); in virtio_set_iothread() 113 vq->viothrd.iomvt.fd = vq->viothrd.kick_fd; in virtio_set_iothread() 115 if (!iothread_add(vq->viothrd.ioctx, vq->viothrd.kick_fd, &vq->viothrd.iomvt)) in virtio_set_iothread() 117 if (ioevent_poll || !virtio_register_ioeventfd(base, idx, true, vq->viothrd.kick_fd)) in virtio_set_iothread() 121 if (ioevent_poll || !virtio_register_ioeventfd(base, idx, false, vq->viothrd.kick_fd)) in virtio_set_iothread() 122 if (!iothread_del(vq->viothrd.ioctx, vq->viothrd.kick_fd)) { in virtio_set_iothread() 124 if (vq->viothrd.kick_fd) { in virtio_set_iothread() 125 close(vq->viothrd.kick_fd); in virtio_set_iothread() 126 vq->viothrd.kick_fd = -1; in virtio_set_iothread()
|
| /devicemodel/include/ |
| A D | vhost.h | 27 int kick_fd; /**< fd of kick eventfd */ member
|
| A D | virtio.h | 428 int kick_fd; member
|
Completed in 11 milliseconds