Re: installing an ISR from user code

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Mon Oct 30 2000 - 15:03:33 EST


On Mon, 30 Oct 2000, Tim Waugh wrote:

> On Mon, Oct 30, 2000 at 11:06:59AM -0800, rread@datarithm.net wrote:
>
> > I'm new at this myself, but how about creating a minor number for each
> > ISR? When the BH runs, it wakes up the processing waiting on the
> > device for that ISR.
>
> ... which won't get run until after the interrupt is processed, but
> the interrupt won't get processed until it's run. Nope.
>
> Tim.
> */
>

An interrupt will occur at any time. The user-pages may not be in
memory at that time.

I suggest you do your ISR in the driver (or module) where it really
should be done. The ISR pages are always present.

Cheers,
Dick Johnson

Penguin : Linux version 2.2.17 on an i686 machine (801.18 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.

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



This archive was generated by hypermail 2b29 : Tue Oct 31 2000 - 21:00:27 EST