Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:py from fs while checksumming, otherwise like csum_partial

Proto:__wsum csum_partial_copy_from_user(const void __user *src, void *dst, int len, __wsum sum, int *csum_err)

Type:__wsum

Parameter:

TypeParameterName
const void __user *src
void *dst
intlen
__wsumsum
int *csum_err
157  missing = __copy_from_user(dst, src, len)
158  If missing Then
159  memset(dst + len - missing, 0, missing)
160  csum_err = -EFAULT
161  Else csum_err = 0
164  Return mputes the checksum of a memory block at buff, length len,* and adds in "sum" (32-bit)* returns a 32-bit number suitable for feeding into itself* or csum_tcpudp_magic* this function must be called with even lengths, except* for the last fragment, which