[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [help] problem with `tools/xenstore/xs.c: xs_talkv()`
Hi all, In xen-4.1.2 src/tools/xenstore/xs.c: xs_talkv function, there are several lines as follow: 437 mutex_lock(&h->request_mutex);
438
439 if (!xs_write_all(h->fd, &msg, sizeof(msg)))
440 goto fail;
441
442 for (i = 0; i < num_vecs; i++)
443 if (!xs_write_all(h->fd, iovec[i].iov_base, iovec[i].iov_len))
444 goto fail;
445
446 ret = read_reply(h, &msg.type, len);
447 if (!ret)
448 goto fail;
449
450 mutex_unlock(&h->request_mutex); The above seems to tell me that after writing to h->fd , the read_reply invoking read_message which immediatelly read from hd->fd?
What did it mean by this? Thanks
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |