Re: Handling interrupts from userspace

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 5 Aug 1999 11:03:38 +0100 (BST)


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

On the x86 because the interrupt may be shared. There are other platforms
with interrupt sources that are not disableable - so you cannot return
to user space until the IRQ is cleared - or you get another IRQ. Thankfully
that bogosity is rare.

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

Nod

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