Interfacing user application and interrupt.

Wolfgang Denk wd at denx.de
Sat Jul 21 21:45:31 EST 2001


In message <20010721101345.5964.qmail at web20104.mail.yahoo.com> 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 at 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/





More information about the Linuxppc-embedded mailing list