函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\iov_iter.c Create Date:2022-07-27 07:21:05
Last Modify:2022-05-21 11:43:54 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:csum_and_copy_to_iter

函数原型:size_t csum_and_copy_to_iter(const void *addr, size_t bytes, void *csump, struct iov_iter *i)

返回类型:size_t

参数:

类型参数名称
const void *addr
size_tbytes
void *csump
struct iov_iter *i
1524  from等于addr
1525  csum等于csump
1527  off等于0
1529  如果此条件成立可能性小(为编译器优化)(iov_iter_is_pipe(i))则返回:csum_and_copy_to_pipe_iter(addr, bytes, csum, i)
1532  sum等于csum
1533  如果此条件成立可能性小(为编译器优化)(iov_iter_is_discard(i))则
1534  WARN_ON(1)
1535  返回:0
1537  iterate_and_advance(i, bytes, v, ({interr = 0;next = csum_and_copy_to_user((from += iov_len) - iov_len, iov_base, iov_len, 0, & err);如果非err则{sum = csum_block_add(sum, next, off);off += iov_len;}err ? iov_len : 0;}), ({char * p = kmap_atomic(bv_page);sum = csum_and_memcpy(p + bv_offset, (from += bv_len) - bv_len, bv_len, sum, off);Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(p);off += bv_len;}), ({sum = csum_and_memcpy(iov_base, (from += iov_len) - iov_len, iov_len, sum, off);off += iov_len;}))
1561  csum等于sum
1562  返回:bytes