1 #ifndef _ASM_X86_UACCESS_32_H
2 #define _ASM_X86_UACCESS_32_H
7 #include <linux/errno.h>
9 #include <linux/string.h>
14 (
void __user *to,
const void *
from,
unsigned long n);
16 (
void *to,
const void __user *
from,
unsigned long n);
18 (
void *to,
const void __user *
from,
unsigned long n);
20 (
void *to,
const void __user *
from,
unsigned long n);
22 (
void *to,
const void __user *
from,
unsigned long n);
46 if (__builtin_constant_p(n)) {
96 if (__builtin_constant_p(n)) {
140 if (__builtin_constant_p(n)) {
158 static __always_inline unsigned long __copy_from_user_nocache(
void *to,
159 const void __user *from,
unsigned long n)
162 if (__builtin_constant_p(n)) {
181 __copy_from_user_inatomic_nocache(
void *to,
const void __user *from,
188 const void *from,
unsigned long n);
190 const void __user *from,
195 #ifdef CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
203 const void __user *from,
208 if (
likely(sz == -1 || sz >= n))