??? wrote:
> Hi:
> 
> I want to load a module to access an extern variable (extern boolean_t
> e1000g_force_detach) defined in e1000g_sw.h. And I have passed
> compilation. But when I execute modload, the system exports :
> 
> undefined symbol
> can't load module : Invalid argument
> 'e1000g_force_detach'
> .....
> 
> Who could tell me why? and how to access kernel extern variable in my
> self module? thank you for your help.

Did you remember to link it against the module whose variable you want
to access?  Adding something like "-dy -Ndrv/e1000g" to the link line
should do it.

-- 
James Carlson         42.703N 71.076W         <carlsonj at workingcode.com>

Reply via email to