函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bvec.h Create Date:2022-07-27 06:44:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bvec_iter_advance

函数原型:static inline bool bvec_iter_advance(const struct bio_vec *bv, struct bvec_iter *iter, unsigned bytes)

返回类型:bool

参数:

类型参数名称
const struct bio_vec *bv
struct bvec_iter *iter
unsignedbytes
90  idx等于 current index into bvl_vec
92  如果WARN_ONCE(bytes > residual I/O count , "Attempted to advance past end of bvec iter\n")则
94  residual I/O count 等于0
95  返回:false
98  residual I/O count 减等于bytes
99  bytes加等于 number of bytes completed in current bvec
101 bytesbytes大于等于bv_len循环
102  bytes减等于bv_len
103  idx自加
106  current index into bvl_vec 等于idx
107  number of bytes completed in current bvec 等于bytes
108  返回:true
调用者
名称描述
bio_integrity_advance_integrity_advance - Advance integrity vector*@bio: bio whose integrity vector to update*@bytes_done: number of data bytes that have been completed* Description: This function calculates how many integrity bytes the* number of completed data bytes
bio_advance_iter