From: Keir Fraser Subject: Re: evtchn_device_upcall() ? Date: Sat, 24 Sep 2005 20:34:13 +0100 Message-ID: <1218dcb9b2d0a9958b4d2e9004069fdf@cl.cam.ac.uk> References: <5d7aca9505092410422aa29b58@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: <5d7aca9505092410422aa29b58@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 List-Id: xen-devel@lists.xenproject.org On 24 Sep 2005, at 18:42, NAHieu wrote: > Anybody could tell me what is the purpose of having > evtchn_device_upcall() in > linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c ? Notifications on event channels that user-space processes are bound to are demuxed in that function and teh notification appended to the appropriate process's ring buffer for later passing to user space via read(). Note how the relevant process is woken if it is blocked in read() or select(), or receives SIGIO if it requested FASYNC mode on the file descriptor. -- Keir