Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\checksum.h Create Date:2022-07-28 05:51:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:remcsum_adjust

Proto:static inline __wsum remcsum_adjust(void *ptr, __wsum csum, int start, int offset)

Type:__wsum

Parameter:

TypeParameterName
void *ptr
__wsumcsum
intstart
intoffset
162  psum = ptr + offset
166  csum = csum_sub(csum, 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 )
169  delta = csum_sub((__force__wsum)Fold a partial checksum, (__force__wsum) * psum)
171  psum = Fold a partial checksum
173  Return delta