函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:csum_and_copy_from_iter_full

函数原型:bool csum_and_copy_from_iter_full(void *addr, size_t bytes, __wsum *csum, struct iov_iter *i)

返回类型:bool

参数:

类型参数名称
void *addr
size_tbytes
__wsum *csum
struct iov_iter *i
1481  to等于addr
1483  off等于0
1484  sum等于csum
1485  如果此条件成立可能性小(为编译器优化)(iov_iter_is_pipe(i) || iov_iter_is_discard(i))则
1486  WARN_ON(1)
1487  返回:false
1489  如果此条件成立可能性小(为编译器优化)(count < bytes)则返回:false
1491  iterate_all_kinds(i, bytes, v, ({interr = 0;next = csum_and_copy_from_user(iov_base, (to += iov_len) - iov_len, iov_len, 0, & err);如果err则返回false;sum = csum_block_add(sum, next, off);off += iov_len;0;}), ({char * p = kmap_atomic(bv_page);sum = csum_and_memcpy((to += bv_len) - bv_len, p + bv_offset, 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((to += iov_len) - iov_len, iov_base, iov_len, sum, off);off += iov_len;}))
1515  csum等于sum
1516  iov_iter_advance(i, bytes)
1517  返回:true
调用者
名称描述
skb_add_data
skb_do_copy_data_nocache