Skip to contentSkip to conversation

non-modversions GPLONLY_

DISCUSSION David S. Miller 2 participants 2 messages Oct 17, 2002

lore
Share & tools
lore
#0 lore raw

If we export the symbol as GPLONLY_dequeue_signal (for example), yet don't use modversions to mangle the GPLONLY_ prefix to the symbol for what code actually uses to access the symbol, what makes this work?

Is there some magic in newer versions of modutils which does this transparently? :-)

#1 lore raw
Quoted 6 lines · David S. Miller

If we export the symbol as GPLONLY_dequeue_signal (for example), yet don't use modversions to mangle the GPLONLY_ prefix to the symbol for what code actually uses to access the symbol, what makes this work?

Is there some magic in newer versions of modutils which does this transparently? :-)

modutils 2.4.10 added support for GPLONLY_ symbols, with fixes though 2.4.14 (2001-10-0 to 2002-02-27). insmod strips the leading "GPLONLY_" when loading a symbol into the hash table iff the module being loaded has a GPL license.