LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How do i run exported function from another LKM? (https://www.linuxquestions.org/questions/linux-kernel-70/how-do-i-run-exported-function-from-another-lkm-635215/)

frostecheg 04-14-2008 06:47 AM

How do i run exported function from another LKM?
 
Heya.
I am writing 2 LKMs (there should be 2,dont ask :). One of them should be able to call another's function. I know that the LKM exports its function to symbol table, but I have no idea how to call it (besides parsing /proc/kallsyms ).
The kernel is 2.6 , so there is no publicly exported table.
Thank you.

Simple version:
LKM1 - has function yohoho();

LKM1 loads
LKM2 loads
How to make LKM2 call exported function yohoho()?

:)


All times are GMT -5. The time now is 06:59 PM.