From: Keir Fraser Subject: Re: back/frontend drivers HelloWorld Date: Fri, 23 Sep 2005 12:54:19 +0100 Message-ID: <6ebea86a63b72d1ed824afae3da12d9e@cl.cam.ac.uk> References: <200509221746.32758.tiger@swsoft.mipt.ru> <5d7aca9505092302532b4e88eb@mail.gmail.com> <766473d1a313531c949034405df37ec5@cl.cam.ac.uk> <5d7aca95050923043774747da9@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5d7aca95050923043774747da9@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: NAHieu Cc: xen-devel , Anton Korenyushkin List-Id: xen-devel@lists.xenproject.org On 23 Sep 2005, at 12:37, NAHieu wrote: > Yes, it is. But looks like xenstore is the only way to "notify" > between userspace applications (like one runs in domU and another runs > in dom0). Or there is another good solution ? You can execute all the event-channel binding and sending commands via libxenctrl (see the interfaces defintiions in xenctrl.h). You can receive asynchronous notifications via /dev/xen/evtchn. You execute a special ioctl to bind to particular event-channel ports, then you can read() from the device to read ports that have notifications pending, or you can add the fd to a select loop(), or you can set FASYNC and get SIGIO when there are notifications pending. -- Keir