Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bvec.h Create Date:2022-07-28 05:43:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bvec_iter_advance

Proto:static inline bool bvec_iter_advance(const struct bio_vec *bv, struct bvec_iter *iter, unsigned bytes)

Type:bool

Parameter:

TypeParameterName
const struct bio_vec *bv
struct bvec_iter *iter
unsignedbytes
90  idx = current index into bvl_vec
92  If WARN_ONCE(bytes > residual I/O count , "Attempted to advance past end of bvec iter\n") Then
94  residual I/O count = 0
95  Return false
98  residual I/O count -= bytes
99  bytes += number of bytes completed in current bvec
101  When bytes && bytes >= bv_len cycle
102  bytes -= bv_len
103  idx++
106  current index into bvl_vec = idx
107  number of bytes completed in current bvec = bytes
108  Return true
Caller
NameDescribe
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