LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   in which header is "setup_irq" ?? (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/in-which-header-is-setup_irq-659343/)

raedbenz 07-30-2008 04:24 PM

in which header is "setup_irq" ??
 
Hi,,
i am trying to build a module and i am using "setup_irq" to define the irq of timer 2. In a similar way to this (line 133) file "core.c" for ARM ep93xx.
whenever i build it i get warnings
Code:

WARNING: "setup_irq" [/home/raed/TTL/modules/t3/t.ko] undefined!
i have also added all the headers used by "core.c" and i still get warning.
if i try to "insmod" the module i get
Code:

cs-e9302:/home/t3# insmod t.ko                                                                 
t: Unknown symbol setup_irq
insmod: error inserting 't.ko': -1 Unknown symbol in module

any hints?
thanx

colucix 07-31-2008 09:04 AM

Looking for the whole world "setup_irq" under the kernel sources directory on Fedora 9, kernel 2.6.25.11-97.fc9.i686, I found:
Code:

# find . -type f | xargs grep -iw setup_irq
./include/linux/irq.h:extern int setup_irq(unsigned int irq, struct irqaction *new);
./System.map:c045bd64 T setup_irq

it seems setup_irq is declared in the most obvious include: irq.h. Hope this helps.


All times are GMT -5. The time now is 03:39 AM.