- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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? -TervisLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the tip, I also had to include linux/module.h but after that it worked fine.
-Tervis
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page