函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:csum_and_copy_to_pipe_iter

函数原型:static size_t csum_and_copy_to_pipe_iter(const void *addr, size_t bytes, __wsum *csum, struct iov_iter *i)

返回类型:size_t

参数:

类型参数名称
const void *addr
size_tbytes
__wsum *csum
struct iov_iter *i
589  pipe等于pipe
590  p_mask等于ring_size减1
593  off等于0
594  sum等于csum
596  如果非sanity(i)则返回:0
599  bytes等于n等于push_pipe(i, bytes, & i_head, & r)
600  如果此条件成立可能性小(为编译器优化)(!n)则返回:0
602  循环
603  chunk等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, n, PAGE_SIZE - r)
604  p等于kmap_atomic(page)
605  sum等于csum_and_memcpy(p + r, addr, chunk, sum, off)
606  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)
607  head等于i_head
608  iov_offset等于rchunk
609  n减等于chunk
610  off加等于chunk
611  addr加等于chunk
612  r等于0
613  i_head自加
614 n循环
615  count减等于bytes
616  csum等于sum
617  返回:bytes
调用者
名称描述
csum_and_copy_to_iter