Thread: get_user() in LKM

  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