WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] How to use XS_WATCH in

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] How to use XS_WATCH in
From: 胡少龙 <sunofblack@xxxxxxxx>
Date: Sun, 5 Sep 2010 09:43:10 +0800 (CST)
Delivery-date: Sat, 04 Sep 2010 18:44:23 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.cn; s=s1024; t=1283650990; bh=aeulE0kFtMPbckZ7WdL9U+wSQ7KKdog4G4XQWhqoVbk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=zew94hGdXTzVmFSPtzstFIVXmH5oSJ2xVVZCQ+FwNLsdftkZ68hX9RIC+WIZb8tRi21WgJCe5gLR2jWTIjTgxeHrgn+RWxDY3HxeC+vMcR0g9pu89A0s/tzAMGH9c6TH7xexNW1o0ZYfY6h1SBcr06sjT9FigV8Ml5GLJmTB9EE=
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=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] How to use XS_WATCH in, 胡少龙  <=