evtchn_device_upcall() ?
Anybody could tell me what is the purpose of having evtchn_device_upcall() in linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c ?
Great thanks.
Hieu
Quoted 3 lines · NAHieu
Anybody could tell me what is the purpose of having
evtchn_device_upcall()inlinux-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