lkml.org 
[lkml]   [1999]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Handling interrupts from userspace

On Sun, 1 Aug 1999, Alan Cox wrote:

> > The interrupt handler can also disable the IRQ in the PIC. This
> > will prevent further interrupts after exiting the handler.
>
> It doesnt work for PCI for all cases

Just because PCI cards might be sharing interrupt lines or is there
any other reason?

> The card is on IRQ 9 you disable IRQ 9 you return to user space. IRQ 9 is shared with the
> disk. You do a disk I/O. Goodbye computer

It's true you can't do shared interrupts with my driver. But it'll
never try that: It requests the interrupt without SA_SHIRQ so your
scenario could never happen. You just get -EBUSY when you open the
device and the interrupt happens to be in use.

Eric

--
Eric Lammerts <eric@scintilla.utwente.nl>

"Don't you know there ain't no devil?
There's just God when he's drunk." -- Tom Waits



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

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.161 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site