All of lore.kernel.org
 help / color / mirror / Atom feed
* Do you know the bug of EXPORT_SYMBOL()
@ 2015-07-24  5:49 Navy
  2015-07-24  8:18 ` Pranay Srivastava
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Navy @ 2015-07-24  5:49 UTC (permalink / raw)
  To: kernelnewbies

Hi
To my understanding, EXPORT_SYMBOL() is used to export a symbol in 
kernel/modules. The the address of the all sysbols is in /proc/kallsyms. 
Only symbols exported by EXPORT_SYMBOL() is listed its CRC information 
in Module.symvers. So I think the CRC is the key to export a symbol.
I do an experiment:
	
       ---mdir
           |
           |---Mod1
           |    |---mod1.c
           |    |---Makefile
           |
           |---Mod2
                |---mod2.c
                |---Makefile
		
mod1.c define function *void myfunc(void)* and exported by EXPORT_SYMBOL() 
and the CRC info is showed in Module.symvers. mod2.c reference *myfunc* and
compiled successfully. BUT when mod2.ko is insmoded, "unknown symbol" is 
complained. mod2.ko CAN'T BE INSMOD.
I solve this problem by the method in Documentation/kbuild/modules.txt and
heard this is a bug from kernel 2.6.

Why this bug is not be fixed?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-24 17:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-24  5:49 Do you know the bug of EXPORT_SYMBOL() Navy
2015-07-24  8:18 ` Pranay Srivastava
2015-07-24 12:40   ` Navy
2015-07-24 14:20     ` Tal Shorer
2015-07-24 17:10 ` Greg KH
2015-07-24 17:41 ` Abhishek bist

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.