On Mon, 21 May 2001, Bohdan Vlasyuk wrote:
> Hi !
> 
> I've found "The Linux Kernel Module Programming Guide" on LDP.
> (http://www.kernel.org/LDP/LDP/lkmpg/mpg.html). Yet, it's for 2.0.0
> and 2.2.0 kernel versions. It looks like lot of things changed from
> that time, however, "helo, Kernel" program from there works. But I
> can't get "char dev. driver" module to be insmoded -- it says that
> put_user is unresolved symbol. As I've seen in fs/read_write.c, such
> macros exists in some include file, however, it still does not want to
> insmod.
> 
> Perhaps I'm doing something worng. Where can I find the right way??

If i understand your problem correctly you are experiancing a so called module
dependency problem. Insmod does not look for dependant modules, it simply tryes
to load the module its told to load.
Take the following as an example;
Most ethernet drivers are dependant on the module called 8390.o, if insmod is
used to load the ne2k-pci.o module with the command;
insmod ne2k-pci
then we would get a few error messages saying "unresolved symbols", if on the
otherhand "modprobe" is used then modprobe will try to locate dependant modules
for the ne2k-pci.o driver, it will look into the file; 
/lib/modules`uname -r`/modules.dep
for its dependancy information, insmod does not do that.

So try modprobe, or find out which module is needed by your module and insmod
that module before trying to load your module, i cant say i know what module
you mean, its name says nothing to me.

> 
> P.s.: I've seen that there are some neafty macros instead of
> init_module and cleanup_module. Is it documented anywhere ??

Quite possably, its just that i dont know where.

-- 
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to