Home
last modified time | relevance | path

Searched refs:vih (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/hw/input/
H A Dvirtio-input-host.c27 VirtIOInputHost *vih = opaque; in virtio_input_host_event() local
107 if (!vih->evdev) { in virtio_input_host_realize()
112 vih->fd = open(vih->evdev, O_RDWR); in virtio_input_host_realize()
113 if (vih->fd < 0) { in virtio_input_host_realize()
128 rc = ioctl(vih->fd, EVIOCGRAB, 1); in virtio_input_host_realize()
131 vih->evdev); in virtio_input_host_realize()
175 qemu_set_fd_handler(vih->fd, virtio_input_host_event, NULL, vih); in virtio_input_host_realize()
179 close(vih->fd); in virtio_input_host_realize()
180 vih->fd = -1; in virtio_input_host_realize()
188 if (vih->fd > 0) { in virtio_input_host_unrealize()
[all …]