From: Keir Fraser Subject: Re: [PATCH] xc_evtchn_*() interfaces Date: Wed, 14 Jun 2006 22:06:25 +0100 Message-ID: <29ee56b7e9ca601e460c40d09989fb76@cl.cam.ac.uk> References: <20060614174721.GA9810@totally.trollied.org> <904d81044bc745f5b2d1ac4ea24a8319@cl.cam.ac.uk> <20060614194445.GA13059@totally.trollied.org> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060614194445.GA13059@totally.trollied.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 14 Jun 2006, at 20:44, John Levon wrote: >>> No longer open the device as non-blocking: all reads immediately >>> follow >>> a select() on the device indicating it's ready to read. >> >> Why change this? > > Because not all users specified O_NONBLOCK, so to keep the exact same > code would mean complicating the API a little bit. As there is no > extant > code that actually takes advantage of O_NONBLOCK, it's pointless having > the extra code (note that xenstore would actually die if it ever got > EAGAIN...) Okay, that makes sense. Looking at the patch, one nit I have is that the 'event-channel handle' (xce_handle) abstraction is broken by the fact that interface users add the handle to fd sets. Either we should just own up to the fact that xce_handle really is just xce_fd, and thus call it that, or else add a xc_evtchn_fd() interface for getting a pollable fd from a xce_handle. Do you have a preference? -- Keir