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

NAME

6       copy_from_user - Copy a block of data from user space.
7

SYNOPSIS

9       unsigned long copy_from_user(void * to, const void __user * from,
10                                    unsigned long n);
11

ARGUMENTS

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

CONTEXT

23       User context only. This function may sleep.
24

DESCRIPTION

26       Copy data from user space to kernel space.
27
28       Returns number of bytes that could not be copied. On success, this will
29       be zero.
30
31       If some data could not be copied, this function will pad the copied
32       data to the requested size using zero bytes.
33
35Kernel Hackers Manual 2.6.         June 2019                 COPY_FROM_USER(9)
Impressum