Compiling interrupt controller code as a module

Laurent Pinchart laurent.pinchart at technotrade.biz
Wed Apr 18 19:39:55 EST 2007


Hi Bill,

> > I wrote a kernel driver for a custom bus (using arch/ppc). The hardware
> > has a cascaded interrupt controller wired to one of the CPU interrupts.
> > The interrupt controller IRQ handler calls __do_IRQ() to dispatch
> > interrupts.
> >
> > Everything worked fine until I tried to compile the code as a module
> > because __do_IRQ() is not exported. Is there a way to compile an
> > interrupt controller as a module, or must it be included in the kernel ?
>
> Could you just export __do_IRQ()?

That's obviously the easiest solution. As __do_IRQ() is not exported by 
default, and as the function name starts with two underscores, I got the 
feeling it was somehow meant to be private.

I also had a look at the genirq code. It misses a few exports as well 
(irq_set_chip_and_handler for instance).

Laurent Pinchart



More information about the Linuxppc-embedded mailing list