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

Re: [Xen-devel] evtchn_device_upcall() ?

To: NAHieu <nahieu@xxxxxxxxx>
Subject: Re: [Xen-devel] evtchn_device_upcall() ?
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Sat, 24 Sep 2005 20:34:13 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 24 Sep 2005 19:27:01 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <5d7aca9505092410422aa29b58@xxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <5d7aca9505092410422aa29b58@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>