From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vasiliy G Tolstov Subject: Re: use xs_watch from userspace and use epoll instead of select Date: Fri, 03 Jun 2011 20:07:18 +0400 Message-ID: <1307117238.15777.7.camel@vase> References: <1307102689.15777.3.camel@vase> <1307103239.775.382.camel@zakaz.uk.xensource.com> <1307103479.15777.5.camel@vase> Reply-To: v.tolstov@selfip.ru Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1307103479.15777.5.camel@vase> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2011-06-03 at 16:17 +0400, Vasiliy G Tolstov wrote: > On Fri, 2011-06-03 at 13:13 +0100, Ian Campbell wrote: > > On Fri, 2011-06-03 at 13:04 +0100, Vasiliy G Tolstov wrote: > > > Hello. I have some examples of usage xs_watch in userspace that contains > > > loop with select function usage. If i use epoll, no events returned from > > > epoll_wait... > > > Does it matter to use select from fd that used for watch? > > > epoll fd added with ev.events = (EPOLLIN | EPOLLPRI | EPOLLONESHOT); > > > > I think you need to provide an example of the code which doesn't work. > > > > Ian. > > > > This is not work: > if ((err = xs_watch(stats->xs, "data/xenmgm", "xenmgm")) != 0) { Ok. I'm investigate, that xs_read can use relative to root path, for example i can read domid not provide full path to it (/local/domain/XX/domid), but if i want use watch, i need provide full path to wathed node.... This is not clear to me after reading examples... =) Thank You. -- Vasiliy G Tolstov Selfip.Ru