[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] How to use XS_WATCH in


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: 胡少龙 <sunofblack@xxxxxxxx>
  • Date: Sun, 5 Sep 2010 09:43:10 +0800 (CST)
  • Delivery-date: Sat, 04 Sep 2010 18:44:23 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.cn; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=P0e4hsJ9Z8JTmpD5i5uWD4OEl6Xr8Mv1gJVhM3mm/7MrQP30IQbjD+fDLQzCjHCV4DvsLzjC0x+H+TiNzr4E85gzwnrHo6ABkxJXm7bYKp6b4NtWqj1nfF6uIYRgRhTTkEr/DR5nKivKQMhjeQ/aa7lUZOqdJKPBMJwZVr+u+sk=;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

I want to know how to use XS_WATCH, i assume first i do as fellow:

struct xsd_sockmsg msg;
msg.type=XS_WATCH;

write_request((char*)msg, sizeof(msg));
write_request(path, path_length);

struct evtchn_send event;
event.port=xenstore_event;
hypercall_event_channel_op(EVTCHNOP_send, &event);

after that, what should i do? does it just block 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?





_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.