Getting the IRQ number (Was: Basic driver devel questions ?)

David Laight David.Laight at ACULAB.COM
Tue Dec 7 01:47:59 EST 2010


 
> Another question: I just spent 10 minutes trying to find
> where "struct device" was defined.

Dirty trick #4:

At the top of a source file (before the first include) add:
    struct device { int fubar; };
Then try to compile it.

The compiler will the tell where it is defined!

	David




More information about the Linuxppc-dev mailing list