函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\checksum_32.h Create Date:2022-07-27 06:51:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Fold a partial checksum

函数原型:static inline __sum16 csum_fold(__wsum sum)

返回类型:__sum16

参数:

类型参数名称
__wsumsum
106  asm("addl %1, %0 ;\nadcl $0xffff, %0 ;\n":"=r"(sum):"r"((__force u32)sum<<16), "0"((__force u32)sum&0xffff0000))
111  返回:(__force __sum16)(~sum >> 16)
调用者
名称描述
csum_tcpudp_magicmputes the checksum of the TCP/UDP pseudo-header* returns a 16-bit checksum, already complemented
ip_compute_csumIP校验
csum_ipv6_magic
csum_replace_by_diff
csum_replace4
remcsum_adjust
remcsum_unadjust
__skb_checksum_validate_completeValidate (init) checksum based on checksum complete
gso_make_checksumCompute the checksum for a gso segment
__skb_gro_checksum_validate_complete