From: =?gb2312?B?uvrJ2cH6ICA=?= Subject: How to use XS_WATCH in Date: Sun, 5 Sep 2010 09:43:10 +0800 (CST) Message-ID: <861936.94627.qm@web92404.mail.cnh.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi,=0A=0AI want to know how to use XS_WATCH, i assume first i do as fellow:= =0A=0Astruct xsd_sockmsg msg;=0Amsg.type=3DXS_WATCH;=0A=0Awrite_request((ch= ar*)msg, sizeof(msg));=0Awrite_request(path, path_length);=0A=0Astruct evtc= hn_send event;=0Aevent.port=3Dxenstore_event;=0Ahypercall_event_channel_op(= EVTCHNOP_send, &event);=0A=0Aafter that, what should i do? does it just blo= ck in hypercall_event_channel_op() until the value in xenstore specified by= path is changed , and when it return ,i can read the changed value by the = responds msg?=0A=0A=0A