[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unresolved symbol and EXPORT_SYMBOL()...
I have these two modules:
first.c
=======
static int test_val;
EXPORT_SYMBOL(test_val);
...
...
second.c
========
extern int test_val;
...
...
both the modules compile with no errors or warnings.
I did
1. insmod first.o
2. cat /proc/ksyms | grep test_val shows ...
c88f61e0 __VERSIONED_SYMBOL(test_val) [first]
3. insmod second.o fails with "unresolved symbol test_val"
Where am I going wrong ?
TIA,
-siddharth
--
Get your free email from www.linuxmail.org
Powered by Outblaze
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/