export symbol from module to kernel
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?
Many many thanks,