Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\module.c Create Date:2022-07-28 10:58:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_chunked_from_user

Proto:static int copy_chunked_from_user(void *dst, const void __user *usrc, unsigned long len)

Type:int

Parameter:

TypeParameterName
void *dst
const void __user *usrc
unsigned longlen
2930  Do
2931  n = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(len, COPY_CHUNK_SIZE)
2933  If copy_from_user(dst, usrc, n) != 0 Then Return -EFAULT
2935  cond_resched()
2936  dst += n
2937  usrc += n
2938  len -= n
2939  When len cycle
2940  Return 0
Caller
NameDescribe
copy_module_from_userSets info->hdr and info->len.