exporting all extern symbols from kernel module

From: Mario Fratelli (sijj_at_yahoo.com)
Date: 08/10/05


Date: 10 Aug 2005 02:45:07 -0700

Hi all,

I'm porting a few kernel modules written in c++ from kernel 2.4 to
kernel 2.6

I'm now able to compile and load them.

But I'm facing a new problem: when I load a module that depends on
another, it doesn't find its symbols.

I understand that I must now explicitly export symbols using the
EXPORT_SYMBOL or EXPORT_SYMBOL_GPL macros.

But because of c++ name mangling, using EXPORT_SYMBOL becomes a long an
dull task.

Is there a way to export all external symbols like before? I've read
the Rubini's Linux Device Drivers and googled a lot but without any
result :(

Mario Fratelli.



Relevant Pages

  • Re: [BUG] local_softirq_pending storm
    ... If I disable NOHZ by kernel command line nohz=off this problem ... you only use the console and run a kernel compile with -j4? ... Yep, it seems independent of load on the system, to test I compiled ... I didn't applied ratelimit patch since I wanted to test is it high ...
    (Linux-Kernel)
  • modules
    ... I'd like to compile kernel. ... If I go to /etc/modutils there are no my sound modules to load. ...
    (Debian-User)
  • Re: [BUG] local_softirq_pending storm
    ... This system is P4/2.40GHz/HT with SMP/SMT on in kernel config. ... network otherwise plain command line with no network access don't trigger ... you only use the console and run a kernel compile with -j4? ... Yep, it seems independent of load on the system, to test I compiled ...
    (Linux-Kernel)
  • 2.6.33: Xorg+khubd lockup (D-state) BUG / ioctl EVIOCGNAME failed: Inappropriate ioctl for devic
    ... When I move the mouse cursor for 1-5 minutes, khubd and Xorg go to D-state. ... Kernel configuration: ... Identifier "X.org Configured" ... Load "record" ...
    (Linux-Kernel)
  • Re: Linux 2.6.35.6
    ... type 'uptime' on a console, i get three load numbers: ... If there are only bursts of 'load' it should be ... You may think a timed kernel compile is a better way to determine if there ... Inside a character ...
    (Linux-Kernel)