Re: 2.6.9-rc2-mm4 e100 enable_irq unbalanced from

From: Russell King
Date: Wed Sep 29 2004 - 08:36:15 EST


On Wed, Sep 29, 2004 at 01:13:26PM +0100, Alan Cox wrote:
> We have a fundamental API design problem going back to
> day one. The API IMHO should really be
>
> struct irq *irq;
> irq = allocate_irq(5, ...)
> enable_irq(irq);
>
> That would fix
> - Drivers failing to load/init under freak low memory situations
> - How to cleanly report irqs (because each irq can now have ->name)
> - How to tell which shared irq users are disabled/enabled for the irq
> poll/recovery code I posted (and is testing in -mm).
>
> Unfortunately it would require changes to rather a lot of code.

I suggested something like this a while back on the linux-arch list
but it didn't particularly have a good reception from the other
arch maintainers. If there's interest in it, I could dig it out.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/