函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:复制FS同时校验

函数原型:__wsum csum_partial_copy_from_user(const void __user *src, void *dst, int len, __wsum sum, int *csum_err)

返回类型:__wsum

参数:

类型参数名称
const void __user *src
void *dst
intlen
__wsumsum
int *csum_err
157  missing等于__copy_from_user(dst, src, len)
158  如果missing
159  memset(dst + len - missing, 0, missing)
160  csum_err等于负EFAULT
161  否则csum_err等于0
164  返回: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