Thread (1 message) 1 message, 1 author, 2001-07-21

Re: Interfacing user application and interrupt.

From: Wolfgang Denk <hidden>
Date: 2001-07-21 11:45:31

In message [ref] you wrote:
I also have ppc linux interrupt handler that correctly
detects the interrupt from the device. Now what I am
missing is how does the kernel interrupt handler
indicate to the user process that  there was an
interrupt and user process needs to do its thing....
Either make your user process block in a read / write / ioctl  system
call,  and  wake  it  from  your  interrupt  handler,  or implement a
select() / poll() interface, so you don't have to block  waiting  for
this event alone.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
In C we had to code our own bugs, in C++ we can inherit them.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help