函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\checksum.c Create Date:2022-07-27 08:15:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:__wsum csum_partial(const void *buff, int len, __wsum wsum)

返回类型:__wsum

参数:

类型参数名称
const void *buff
intlen
__wsumwsum
127  sum等于wsum
128  result等于do_csum(buff, len)
131  result加等于sum
132  如果sum大于resultresult加等于1
134  返回:result
调用者
名称描述
csum_partial_copy_from_user复制FS同时校验
csum_partial_copy复制FS同时校验
udp_csum_outgoingdp_csum_outgoing - compute UDPv4/v6 checksum over fragments*@sk: socket we are writing to*@skb: sk_buff containing the filled-in UDP header* (checksum field must be zeroed out)
udp_csum
udp_csum_pull_header