How ?

2 messages, 2 authors, 2003-05-15 · open the first message on its own page

How ?

From: Rakesh Jagota <hidden>
Date: 2003-05-15 05:07:56

Hi all,

 Can anyone suggest me how we can invoke the interrupt generated in the
kernel from the user application. I am getting the interrupt in the driver, I
want to update some register in the application, when the inettrupt will be
generated, Right now I am using polloing method. Continuously I am calling
read routines.

Thanks in advance,

Rakesh Jagota


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: How ?

From: Bret Indrelee <hidden>
Date: 2003-05-15 13:31:05

On Thu, 15 May 2003, Rakesh Jagota wrote:
 Can anyone suggest me how we can invoke the interrupt generated in the
kernel from the user application. I am getting the interrupt in the driver, I
want to update some register in the application, when the inettrupt will be
generated, Right now I am using polloing method. Continuously I am calling
read routines.
Don't know why you want to handle it from user space, but the easiest way
to notify an application would be to send a signal. Have a special ioctl()
to notify the driver that this application wants a signal, and then when
the driver receives the interrupt it clears the condition and sends a
signal to the registered application(s).

-Bret

--
Bret Indrelee                 QLogic Corporation
Bret.Indrelee@qlogic.com      6321 Bury Drive, St 13, Eden Prairie, MN 55346


** 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