Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:__wsum csum_partial(const void *buff, int len, __wsum wsum)

Type:__wsum

Parameter:

TypeParameterName
const void *buff
intlen
__wsumwsum
127  sum = wsum
128  result = do_csum(buff, len)
131  result += sum
132  If sum > result Then result += 1
134  Return result
Caller
NameDescribe
csum_partial_copy_from_userpy from fs while checksumming, otherwise like csum_partial
csum_partial_copypy from ds while checksumming, otherwise like csum_partial