1 #ifndef _ASM_X86_UACCESS_32_H
2 #define _ASM_X86_UACCESS_32_H
5 * User space memory access functions
7 #include <linux/string.h>
11 unsigned long __must_check __copy_user_ll
12 (void *to
, const void *from
, unsigned long n
);
13 unsigned long __must_check __copy_from_user_ll_nocache_nozero
14 (void *to
, const void __user
*from
, unsigned long n
);
16 static __always_inline
unsigned long __must_check
17 raw_copy_to_user(void __user
*to
, const void *from
, unsigned long n
)
19 return __copy_user_ll((__force
void *)to
, from
, n
);
22 static __always_inline
unsigned long
23 raw_copy_from_user(void *to
, const void __user
*from
, unsigned long n
)
25 if (__builtin_constant_p(n
)) {
32 __get_user_asm_nozero(*(u8
*)to
, from
, ret
,
39 __get_user_asm_nozero(*(u16
*)to
, from
, ret
,
46 __get_user_asm_nozero(*(u32
*)to
, from
, ret
,
52 return __copy_user_ll(to
, (__force
const void *)from
, n
);
55 static __always_inline
unsigned long
56 __copy_from_user_inatomic_nocache(void *to
, const void __user
*from
,
59 return __copy_from_user_ll_nocache_nozero(to
, from
, n
);
62 #endif /* _ASM_X86_UACCESS_32_H */