Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\usercopy.c Create Date:2022-07-28 06:25:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:-of-line parts

Proto:unsigned long _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
10  res = n
11  might_fault()
12  If Value is more likely to compile time(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)) Then
13  kasan_check_write(to, n)
14  res = raw_copy_from_user(to, from, n)
16  If Value for the false possibility is greater at compile time(res) Then memset(to + (n - res), 0, res)
18  Return res
Caller
NameDescribe
copy_from_user