void replay_event_char_read_run(void *opaque) { CharEvent *event = (CharEvent *)opaque; qemu_chr_be_write_impl(char_drivers[event->id], event->buf, (int)event->len); g_free(event->buf); g_free(event); }
void qemu_chr_be_write(Chardev *s, uint8_t *buf, int len) { if (qemu_chr_replay(s)) { if (replay_mode == REPLAY_MODE_PLAY) { return; } replay_chr_be_write(s, buf, len); } else { qemu_chr_be_write_impl(s, buf, len); } }