Home | History | Annotate | Download | only in qemu

Lines Matching full:channel

75 qemu_channel_open_qemud_pipe( QemuChannel*  channel,
88 channel->is_qemud = 1;
89 channel->fd = fd;
94 qemu_channel_open_qemud( QemuChannel* channel,
124 channel->is_qemud = 1;
125 channel->fd = fd;
131 qemu_channel_open_qemud_old( QemuChannel* channel,
136 snprintf(channel->device, sizeof channel->device,
139 fd = socket_local_client( channel->device,
144 channel->device, strerror(errno));
149 channel->is_qemud_old = 1;
155 qemu_channel_open_tty( QemuChannel* channel,
172 ret = snprintf(channel->device, sizeof channel->device,
174 if (ret >= (int)sizeof channel->device) {
179 channel->is_tty = !memcmp("/dev/tty", channel->device, 8);
184 qemu_channel_open( QemuChannel* channel,
190 /* initialize the channel is needed */
191 if (!channel->is_inited)
193 channel->is_inited = 1;
196 if (qemu_channel_open_qemud_pipe(channel, name) == 0)
199 if (qemu_channel_open_qemud(channel, name) == 0)
202 if (qemu_channel_open_qemud_old(channel, name) == 0)
205 if (qemu_channel_open_tty(channel, name, mode) == 0)
208 channel->is_available = 0;
212 channel->is_available = 1;
216 if (!channel->is_available) {
221 if (channel->is_qemud) {
222 return dup(channel->fd);
225 if (channel->is_qemud_old) {
227 fd = socket_local_client( channel->device,
235 fd = open(channel->device, mode);
239 if (fd >= 0 && channel->is_tty) {
290 static QemuChannel channel[1];
293 fd = qemu_channel_open( channel, "hw-control", O_RDWR );
295 D("%s: could not open control channel: %s", __FUNCTION__,