Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Fold a partial checksum

Proto:static inline __sum16 csum_fold(__wsum sum)

Type:__sum16

Parameter:

TypeParameterName
__wsumsum
106  asm("addl %1, %0 ;\nadcl $0xffff, %0 ;\n":"=r"(sum):"r"((__force u32)sum<<16), "0"((__force u32)sum&0xffff0000))
111  Return (__force __sum16)(~sum >> 16)