* Not able to see the symbols
@ 2005-08-30 15:55 Gorka guardiola
0 siblings, 0 replies; only message in thread
From: Gorka guardiola @ 2005-08-30 15:55 UTC (permalink / raw)
To: linux-kernel
I am programming a service in the kernel and want a module to be able to
use it. This means the module (an external module) need to see the symbols of
the variables (more specifically a lock and a list and some integers).
The problem is the when I compile
the kernel the symbols are not exported. I run nm or look at the System.map and
they are not there, so the module doesnt see them and says "symbol undefined"
when trying to link. Suprisingly, for some reason, it doesnt complain
about the lock.
I tried including (in the kernel service, and even though it is not a
module) module.h and using the EXPORT_SYMBOL macro to no avail.
I have also tried compiling the module two different ways (in the hope
that it would see the symbols even if I dont)
make -C /lib/modules/_kernelname_/build module SUBDIRS=$(pwd)
and
make -C /lib/modules/_kernelname_/build M=$(pwd)
where _kernelname_ is the name of my kernel.
Please, CC me on any answers, as I am not on the list.
TIA,
G.-
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-30 15:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-30 15:55 Not able to see the symbols Gorka guardiola
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox