Thread (7 messages) 7 messages, 3 authors, 2007-06-13

Re: catching interrupts

From: Peter Feuerer <peter@piie.net>
Date: 2007-06-13 07:58:29

On Wed, 2007-06-13 at 02:04 +0200, Bernhard Kuhn wrote:
Peter Feuerer wrote:
quoted
is it possible to catch e.g. the interrupt of the Parallelport (IRQ7 in
my case) in userspace with a RT-Rreempt patched kernel?
A very simple solution would be to create a small kernel device driver
that implements a blocking read function that always gets woken up
by the parport interrupt service routine, then sending one dummy byte.
That would be a very fast and easy to implement solution, but then I
have to touch the kernel again. I wanted not to do that.
But i guess a better variant would be to adopt the IIO framework
for your purpose (http://lkml.org/lkml/2006/8/30/22)
Great, seems like that's what I'm searching for. I will have a deeper
look into this. Because if this is going to be in the mainline kernel, I
don't have to touch the kernel at all.
Thanks.

regards,
--peter
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help