Re: Help needed regarding insmod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 04, 2002 at 11:15:36PM -0800, aaaaaa qqq wrote:
> Dear Friends,
> 
>   I am using the insmod system call to insert a module
I think you are talking about insmod tool aren't you? Or do you attempt to
load a second module from an already loaded one? ( in this case you will need
to call request_module() )

You can not use any libc function within a kernel module.

> unresolved symbols: time
> unresolved symbols: difftime
You can use gettimeofday instead and let it match your needs.
> unresolved symbols: memcpy
Dou you include /usr/src/linux/include/linux/string.h? If not #include
<linux/string.h>

> unresolved symbols: calloc
In kernel module you have to use kmalloc instead. This function is defined in:
/usr/src/linux/include/linux/slab.h

Ciao ciao
-- 
$>cd /pub
$>more beer

(0>
//\  Perego Paolo <p_perego@modiano.com> - www.sikurezza.org/angel
V_/_ 'It's seems the hardest life I've never known'
I'm Linux drow 2.4.17-4GB - SuSE Linux 7.3 (i386) powered.

Attachment: pgp00037.pgp
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux