1__COPY_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, with less
7 checking.
8
10 unsigned long __must_check __copy_to_user(void __user * to,
11 const void * from,
12 unsigned long n);
13
15 to
16 Destination address, in user space.
17
18 from
19 Source address, in kernel space.
20
21 n
22 Number of bytes to copy.
23
25 User context only. This function may sleep.
26
28 Copy data from kernel space to user space. Caller must check the
29 specified block with access_ok before calling this function.
30
31 Returns number of bytes that could not be copied. On success, this will
32 be zero.
33
35Kernel Hackers Manual 2.6. June 2019 __COPY_TO_USER(9)