函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\uaccess_32.h Create Date:2022-07-27 06:58:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:raw_copy_from_user

函数原型:static __always_inline unsigned long raw_copy_from_user(void *to, const void __user *from, unsigned long n)

返回类型:unsigned long

参数:

类型参数名称
void *to
const void __user *from
unsigned longn
26  如果__builtin_constant_p(n)则
30  :n恒等于1
31  ret等于0
33  __get_user_asm_nozero( * (u8 * )to, from, ret, "b", "b", "=q", 1)
35  __uaccess_end()
36  返回:ret
37  :n恒等于2
38  ret等于0
40  __get_user_asm_nozero( * (u16 * )to, from, ret, "w", "w", "=r", 2)
42  __uaccess_end()
43  返回:ret
44  :n恒等于4
45  ret等于0
47  __get_user_asm_nozero( * (u32 * )to, from, ret, "l", "k", "=r", 4)
49  __uaccess_end()
50  返回:ret
53  返回:__copy_user_ll(to, (__forceconstvoid * )from, n)
调用者
名称描述
copyin
_copy_from_user-of-line parts
__copy_from_user_inatomicArchitectures should provide two primitives (raw_copy_{to,from}_user())* and get rid of their private instances of copy_{to,from}_user() and* __copy_{to,from}_user{,_inatomic}().* raw_copy_{to,from}_user(to, from, size) should copy up to size bytes and
__copy_from_user