Re: Handling interrupts from userspace

Douglas Gilbert (dgilbert@interlog.com)
Fri, 30 Jul 1999 20:01:33 -0400


> If this is not possible ... is there any _generic_ driver to which I could
> "attach" a userspace application in order for this app to know when an
> interrupt has happened ?!?!

Roger,
Perhaps you could get a copy of "Linux Device Drivers"
by Alessandro Rubini and get one of his example drivers.
Once you are processing the interrupt properly in
your device driver, you can send a SIGIO signal out
of the bottom half handler to the process that has
opened your device.

Mice drivers like drivers/char/busmouse.c illustrate
this technique. From the user process side this is
called asynchronous notification.

Doug Gilbert

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/