函数逻辑报告 |
Source Code:lib\iov_iter.c |
Create Date:2022-07-27 07:20:40 |
Last Modify:2022-05-21 11:43:54 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:csum_and_copy_from_iter
函数原型:size_t csum_and_copy_from_iter(void *addr, size_t bytes, __wsum *csum, struct iov_iter *i)
返回类型:size_t
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | addr | |
size_t | bytes | |
__wsum * | csum | |
struct iov_iter * | i |
1443 | off等于0 |
1445 | 如果此条件成立可能性小(为编译器优化)(iov_iter_is_pipe(i) || iov_iter_is_discard(i))则 |
1446 | WARN_ON(1) |
1447 | 返回:0 |
1449 | iterate_and_advance(i, bytes, v, ({interr = 0;next = csum_and_copy_from_user(iov_base, (to += iov_len) - iov_len, 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((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;})) |
1474 | 返回:bytes |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |