Linux - data transfer between kernel/user space
put_user(x, ptr)
- Write a simple value into user space
x - Value to copy to user space
ptr - Destination address in user space
get_user(x, ptr)
- Get a simple variable from user space
x - Variable to store result
ptr - Source address in user space
copy_to_user(void __user *to, const void *from, unsigned long n);
- Copy a block of data into user space
- copy_from_user(void *to, const void __user *from, unsigned long n);
- Copy a block of data from user space
沒有留言:
張貼留言