I lost the original message sorry.

1. There aren't man pages for kernel functions, you pretty much need
   to read headers, ask questions and steal other peoples code.

2.
        you need to compile with -O2 in order to get gcc to realize
        that it knows that sizeof(*(static char*)) is always
        one. without -O2, gcc just takes the switch that put_user
        expands to and compiles it in, thus the undefined reference to
        put_user_X .

3.
        You don't want to put full paths in your headers.

        Try compiling it with

        gcc -O2 -I/usr/src/linux/include -c foobar.c

        and you can get rid of the </usr/src/..../uaccess.h> ugliness

have fun,

greg

-- 
segment doesn't find

-
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