From: Philip B. <ph...@ba...> - 2011-04-04 20:19:58
|
On 04/04/2011 04:02 PM, joe joe wrote: > > Is there a standard method for a user space application to be notified when > the kernel receives an interrupt? For example, whenever an external device > sends an interrupt to the Gumstix to communicate with it via UART or SPI. I > am wondering if there's known methods for my user-space application to be > notified so that it can handle the incoming message as soon as possible. > > The method that comes to mind is dedicating a thread for polling the driver > for interrupts via an ioctl blocking call and return once an interrupt is > received, however this seems inefficient. Please advice if you know a more > efficient way for doing this. This might be helpful: http://lwn.net/Articles/232575/ Philip |