1__COPY_TO_USER(9)         Memory Management in Linux         __COPY_TO_USER(9)
2
3
4

NAME

6       __copy_to_user - Copy a block of data into user space, with less
7       checking.
8

SYNOPSIS

10       unsigned long __copy_to_user(void __user * to, const void * from,
11                                    unsigned long n);
12

ARGUMENTS

14       to
15           Destination address, in user space.
16
17       from
18           Source address, in kernel space.
19
20       n
21           Number of bytes to copy.
22

CONTEXT

24       User context only. This function may sleep.
25

DESCRIPTION

27       Copy data from kernel space to user space. Caller must check the
28       specified block with access_ok before calling this function.
29
30       Returns number of bytes that could not be copied. On success, this will
31       be zero.
32
34Kernel Hackers Manual 3.10         June 2019                 __COPY_TO_USER(9)
Impressum