Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

Problem with IRQs and kernel modules

Altera_Forum
Honored Contributor II
1,020 Views

Hello all! 

 

Functions request_irq and free_irq don't seem to be available to the installable kernel modules, trying to insmod a module using those functions will fail with unresolved symbol messages about these two functions.  

These functions work ok when linking the driver statically into the kernel. 

 

What gives? Can I somehow tell the kernel to export these functions? 

And yes, I have to have those drivers as modules, linking into kernel is not an option in this case.  

 

My distribution is the older 1.1 version, would upgrading to version 1.2 fix this? 

 

 

-Tervis
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
288 Views

Hi Tervis, 

 

You can export those two symbols by adding the following to the end of the file arch/nios2nommu/kernel/irq.c. 

EXPORT_SYMBOL(request_irq); EXPORT_SYMBOL(free_irq); 

 

Regards, 

wentao
0 Kudos
Altera_Forum
Honored Contributor II
288 Views

Thanks for the tip, I also had to include linux/module.h but after that it worked fine. 

 

 

-Tervis
0 Kudos
Reply