get_user() in LKM

This is a discussion on get_user() in LKM within the Linux Programming forums, part of the Platform Specific Boards category; hi i am writing a basic LKM. i want to get an integer variable from userspace to kernelspace with get_user(). ...

  1. #1
    template<typename T> threahdead's Avatar
    Join Date
    Sep 2002
    Posts
    214

    get_user() in LKM

    hi i am writing a basic LKM.

    i want to get an integer variable from userspace to kernelspace with get_user().
    what header file do i have to include for get_user()?
    because i have asm/uaccess.h included and copy_from/to_user works fine.
    but not get_user().

    is it actually ok to use get_user() for transfering integers?


    thanks

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Maybe this site will be of some help.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    template<typename T> threahdead's Avatar
    Join Date
    Sep 2002
    Posts
    214
    thanks for the link.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21