2003-09-21 13:50:22

by sting sting

[permalink] [raw]
Subject: EXPORT_SYMBOL MACRO definition (in 2.4.18-3) - newbie

Hello ,
I want to know where EXPORT_SYMBOL macro is defined (in 2.4.18-3 kernel).

I saw in module.h that there are some #ifndef EXPORT_SYMBOL
that print an error if this symbols is nor defined , but searching
in the kernel sources did not gave me more results.

I also saw in the kernel Makefile that EXPORT_SYMBOL
appears in tags, but I do'nt know how to find the definition
for this macro.

Does somebody know ?

regards,
sting

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail


2003-09-21 15:38:10

by Tommy Reynolds

[permalink] [raw]
Subject: Re: EXPORT_SYMBOL MACRO definition (in 2.4.18-3) - newbie

Uttered "sting sting" <[email protected]>, spoke thus:

> I want to know where EXPORT_SYMBOL macro is defined (in 2.4.18-3 kernel).

It's optionally defined in module source code.

This symbol is used to tailor the symbol scoping rules implemented by
the module utilities. A module is free to define this symbol before
importing the standard module #include<> files. Use is voluntary
(2.4.x) but strongly recommended.