Re: Kernel module unable to find an exported symbol

From: David Erickson
Date: Sun Apr 13 2008 - 17:58:35 EST


On Sun, Apr 13, 2008 at 2:52 PM, Dmitri Vorobiev
<dmitri.vorobiev@xxxxxxxxx> wrote:
> David Erickson пишет:
>
> > Hi everyone, I have two kernel modules I am developing, both use the
> > call_rcu exported function. The core module finds it no problem,
> > installs, and uses it. The second module however when I try to insmod
> > it complains:
> >
> > Unknown symbol call_rcu
> >
> > I have verified that it is exported via /proc/kallsyms:
> > c04348c8 T call_rcu
> >
> > I am at a loss as to how to proceed, can anyone shed some light on how
> > this could be happening? Or how to diagnose and debug the problem?
>
> It is very much possible that adding the following line to the source
> code of your module will help:
>
> MODULE_LICENSE("GPL");
>
> HTH,
> Dmitri

That did the trick, thank you Dmitri!

-David
╒ИЛ╧╩╝&ч~╨&╤╛√+-╠Ищ╤╔┼w╝·к⌡╠йБmИb·Лdz╧ч√)М┘ФХw*jg╛╠╗╤┴ ▌┼щ╒j/│ЙДz╧ч√┼Ю2┼ч≥╗Х╜з&╒)ъ║╚a╤зЧЬ╝G╚²Иh╝Фj:+v┴╗┼wХ├ы╔>W ╠ЙчiшaxPjьm╤÷Ъц -╩+┐Ыd _