函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\usercopy.c Create Date:2022-07-27 07:22:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:-of-line parts

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

返回类型:unsigned long

参数:

类型参数名称
void *to
const void __user *from
unsigned longn
10  res等于n
11  might_fault()
12  如果此条件成立可能性大(为编译器优化)(access_ok - Checks if a user space pointer is valid*@addr: User space pointer to start of block to check*@size: Size of block to check* Context: User context only. This function may sleep if pagefaults are* enabled.(from, n))则
13  kasan_check_write(to, n)
14  res等于raw_copy_from_user(to, from, n)
16  如果此条件成立可能性小(为编译器优化)(res)则memset(to + (n - res), 0, res)
18  返回:res
调用者
名称描述
copy_from_user