Skip to contentSkip to conversation

evtchn_device_upcall() ?

DISCUSSION NAHieu 2 participants 2 messages Sep 24, 2005

lore
Share & tools
lore

NAHieu

author
#0 lore raw

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

#1 lore raw
Quoted 3 lines · NAHieu

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