Searched refs:ioh (Results 1 – 2 of 2) sorted by relevance
56 IOHandlerRecord *ioh; in qemu_set_fd_handler2() local59 QLIST_FOREACH(ioh, &io_handlers, next) { in qemu_set_fd_handler2()60 if (ioh->fd == fd) { in qemu_set_fd_handler2()61 ioh->deleted = 1; in qemu_set_fd_handler2()66 QLIST_FOREACH(ioh, &io_handlers, next) { in qemu_set_fd_handler2()67 if (ioh->fd == fd) in qemu_set_fd_handler2()70 ioh = qemu_mallocz(sizeof(IOHandlerRecord)); in qemu_set_fd_handler2()71 QLIST_INSERT_HEAD(&io_handlers, ioh, next); in qemu_set_fd_handler2()73 ioh->fd = fd; in qemu_set_fd_handler2()74 ioh->fd_read_poll = fd_read_poll; in qemu_set_fd_handler2()[all …]
80 IOHandlerRecord* ioh = opaque; in ioh_callback() local81 ioh->running = 1; in ioh_callback()83 ioh->fd_read(ioh->opaque); in ioh_callback()85 if (!ioh->deleted && (events & LOOP_IO_WRITE) != 0) { in ioh_callback()86 ioh->fd_write(ioh->opaque); in ioh_callback()88 ioh->running = 0; in ioh_callback()89 if (ioh->deleted) { in ioh_callback()90 loopIo_done(ioh->io); in ioh_callback()91 free(ioh); in ioh_callback()100 IOHandlerRecord **pioh, *ioh; in qemu_set_fd_handler() local[all …]