1COPY_TO_USER(9) Memory Management in Linux COPY_TO_USER(9)
2
3
4
6 copy_to_user - Copy a block of data into user space.
7
9 unsigned long copy_to_user(void __user * to, const void * from,
10 unsigned long n);
11
13 to
14 Destination address, in user space.
15
16 from
17 Source address, in kernel space.
18
19 n
20 Number of bytes to copy.
21
23 User context only. This function may sleep.
24
26 Copy data from kernel space to user space.
27
28 Returns number of bytes that could not be copied. On success, this will
29 be zero.
30
32Kernel Hackers Manual 2.6. June 2019 COPY_TO_USER(9)