These functions which are giving u "unresolved symbols" error...work
only well in user mode applications....
As, rightly pointed out by somebody in this mailing list...only
functions that are there in /proc/ksyms can be
called by ur kernel module.
However, to call the user space functions...u have to link the file in
which these functions are present with ur
kernel module...
i have tried it..it works fine...
For eg: kernel.c : ur kernel module
user.c : the file which contains the functions which
need to be called from kernel module...
try this:
gcc -o kernel.o -nostartfiles -wl,-r kernel.c user.o
i hope this might help...
regards
puja
aaaaaa qqq wrote:
>Dear Friends,
>
> I am using the insmod system call to insert a module
>into the kernel. When I run that command it's showing
>four errors as follows. Can anyone help me in this
>regard.
>
>unresolved symbols: time
>unresolved symbols: difftime
>unresolved symbols: memcpy
>unresolved symbols: calloc
>
>Can I use any other system calls instead of the above
>calls?
>
>Waiting for reply,
>Regards,
>Sudhakar.
>
>
>__________________________________________________
>Do You Yahoo!?
>Try FREE Yahoo! Mail - the world's greatest free email!
>http://mail.yahoo.com/
>
>_______________________________________________
>linux-india-help mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/linux-india-help
>
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help