Home | History | Annotate | Download | only in qemu

Lines Matching full:channel

75 qemu_channel_open_qemud( QemuChannel*  channel,
105 channel->is_qemud = 1;
106 channel->fd = fd;
112 qemu_channel_open_qemud_old( QemuChannel* channel,
117 snprintf(channel->device, sizeof channel->device,
120 fd = socket_local_client( channel->device,
125 channel->device, strerror(errno));
130 channel->is_qemud_old = 1;
136 qemu_channel_open_tty( QemuChannel* channel,
153 ret = snprintf(channel->device, sizeof channel->device,
155 if (ret >= (int)sizeof channel->device) {
160 channel->is_tty = !memcmp("/dev/tty", channel->device, 8);
165 qemu_channel_open( QemuChannel* channel,
171 /* initialize the channel is needed */
172 if (!channel->is_inited)
174 channel->is_inited = 1;
177 if (qemu_channel_open_qemud(channel, name) == 0)
180 if (qemu_channel_open_qemud_old(channel, name) == 0)
183 if (qemu_channel_open_tty(channel, name, mode) == 0)
186 channel->is_available = 0;
190 channel->is_available = 1;
194 if (!channel->is_available) {
199 if (channel->is_qemud) {
200 return dup(channel->fd);
203 if (channel->is_qemud_old) {
205 fd = socket_local_client( channel->device,
213 fd = open(channel->device, mode);
217 if (fd >= 0 && channel->is_tty) {
268 static QemuChannel channel[1];
271 fd = qemu_channel_open( channel, "hw-control", O_RDWR );
273 D("%s: could not open control channel: %s", __FUNCTION__,