Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\uaccess_32.h Create Date:2022-07-28 05:59:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:raw_copy_from_user

Proto:static __always_inline unsigned long raw_copy_from_user(void *to, const void __user *from, unsigned long n)

Type:unsigned long

Parameter:

TypeParameterName
void *to
const void __user *from
unsigned longn
26  If __builtin_constant_p(n) Then
30  Case n == 1
31  ret = 0
33  __get_user_asm_nozero( * (u8 * )to, from, ret, "b", "b", "=q", 1)
35  __uaccess_end()
36  Return ret
37  Case n == 2
38  ret = 0
40  __get_user_asm_nozero( * (u16 * )to, from, ret, "w", "w", "=r", 2)
42  __uaccess_end()
43  Return ret
44  Case n == 4
45  ret = 0
47  __get_user_asm_nozero( * (u32 * )to, from, ret, "l", "k", "=r", 4)
49  __uaccess_end()
50  Return ret
53  Return __copy_user_ll(to, (__forceconstvoid * )from, n)
Caller
NameDescribe
copyin
_copy_from_user-of-line parts