Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Problem 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?

-Tervis

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

    -Tervis