PDA

View Full Version : get_user() in LKM



threahdead
08-21-2003, 10:27 AM
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

Hammer
08-21-2003, 06:22 PM
Maybe this site (http://www.iglu.org.il/lxr/ident?i=get_user) will be of some help.

threahdead
08-22-2003, 03:22 AM
thanks for the link.