Forum Discussion
Altera_Forum
Honored Contributor
21 years agoProblem with IRQs and kernel modules
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? -Tervis2 Replies
- Altera_Forum
Honored Contributor
Hi Tervis,
You can export those two symbols by adding the following to the end of the file arch/nios2nommu/kernel/irq.c.
Regards, wentaoEXPORT_SYMBOL(request_irq); EXPORT_SYMBOL(free_irq); - Altera_Forum
Honored Contributor
Thanks for the tip, I also had to include linux/module.h but after that it worked fine.
-Tervis