Exporting symbols between modules
Hi all,
I'm new in this list and I have some problems exporting symbols in a module to see them in other module.
In the module I want to export the symbol I do:
tList list;EXPORT_SYMBOL(list);
I compile it and install without any problem.
And in the module I want to use them I declare list with "extern" prototype:
extern tList list;
When I compile the module It says me that list is undefined, and I don't know what I am doing wrong.
Does anybody know what is happening?
Maybe a makefile example would be appreciated...
Thanks in advance.
Regards,
Sergio
Quoted 1 line · Sergio Paracuellos
Hi all,
Hi Sergio,
Quoted 15 lines
I'm new in this list and I have some problems exporting symbols in a module to see them in other module.
In the module I want to export the symbol I do:
tList list;
EXPORT_SYMBOL(list);I compile it and install without any problem.
And in the module I want to use them I declare list with "extern" prototype:
extern tList list;
Quoted 8 lines
When I compile the module It says me that list is undefined, and I don't know what I am doing wrong.
Does anybody know what is happening?
Maybe a makefile example would be appreciated...
Thanks in advance.
1. the kernel-mentors list [1] is a better place for such questions
2. please post an URL to the full source of your driver, without it debugging your problem is not possible
Quoted 3 lines
Regards,
Sergio
cu
Adrian
[1] http://selenic.com/mailman/listinfo/kernel-mentors
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed