LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   export symbol from module to kernel (https://www.linuxquestions.org/questions/programming-9/export-symbol-from-module-to-kernel-451891/)

dogalmity 06-05-2006 04:38 PM

export symbol from module to kernel
 
Hey folks,

Got a question about EXPORT_SYMBOL. I can modify the kernel code to export a variable that I can then monkey with in a loadable module. But is it possible to export a symbol from a module TO the kernel? I'm trying to do just that, but I'm getting an "undefined reference to" error for each one when I try to make the kernel. These variables I declare in the module and then EXPORT_SYMBOL them. Then in the kernel code I just stick an extern in front of their declaration, just like I do when going from kernel to module. Is this just something you can't do, or am I doing it wrong?

Using 2.6.16

Many many thanks,
Nathan


All times are GMT -5. The time now is 09:15 PM.