函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_copy_to_iter

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

返回类型:size_t

参数:

类型参数名称
const void *addr
size_tbytes
struct iov_iter *i
622  from等于addr
623  如果此条件成立可能性小(为编译器优化)(iov_iter_is_pipe(i))则返回:copy_pipe_to_iter(addr, bytes, i)
625  如果iter_is_iovec(i)则might_fault()
627  iterate_and_advance(i, bytes, v, copyout(iov_base, (from += iov_len) - iov_len, iov_len), memcpy_to_page(bv_page, bv_offset, (from += bv_len) - bv_len, bv_len), 内存复制(iov_base, (from += iov_len) - iov_len, iov_len))
634  返回:bytes
调用者
名称描述
copy_to_iter