Re: Problem with get_user(), put_user() functions...

Murali Nagaraj (murali.n@tatainfotech.com)
Tue, 13 Jul 1999 10:23:34 +0530 (IST)


On Wed, 7 Jul 1999, Grigory Lyahovitsky wrote:

:Hello!
:
: I have taken the example code of interaction (data transfering) between user
:and kernel space through /proc filesystem at:
:
:http://metalab.unc.edu/LDP/LDP/lkmpg/node17.html
:
: But, it failed to run on my linux (kernel 2.2.3) when I done 'insmod procfs.o'
:with next errors:
:
:procfs.o: unresolved symbol __put_user_X
:procfs.o: unresolved symbol __get_user_X
:
: Where is my mistake???
:

Assuming that you have used the correct headers for compilation, you must
have omitted the "-O2" flag in your compilation. The modules must be
compiled with the same optimization flag as the kernel. If this is okay,
do a - cat /proc/ksyms | grep put_user. See the output. If you can find
the symbol __put_user_X, then, I don't know what else could be the
problem. If you do find them in the output, it means that you have set a
different level of optimization or you have a kernel compiled with version
information for modules "CONFIG_MODVERSIONS".

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/