函数逻辑报告

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

函数名称:_copy_to_user

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

返回类型:unsigned long

参数:

类型参数名称
void __user *to
const void *from
unsigned longn
26  might_fault()
27  如果此条件成立可能性大(为编译器优化)(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.(to, n))则
28  kasan_check_read(from, n)
29  n等于raw_copy_to_user(to, from, n)
31  返回:n
调用者
名称描述
copy_to_user