函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-27 18:31:44
Last Modify:2020-03-17 23:13:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_trim - trim a bio*@bio: bio to trim*@offset: number of sectors to trim from the front of @bio*@size: size we want to trim @bio to, in sectors

函数原型:void bio_trim(struct bio *bio, int offset, int size)

返回类型:void

参数:

类型参数名称
struct bio *bio
intoffset
intsize
1928  size左移等于9位
1929  如果offset恒等于0且size恒等于 residual I/O count 则返回
1932  _advance - increment/complete a bio by some number of bytes*@bio: bio to advance*@bytes: number of bytes to complete* This updates bi_sector, bi_size and bi_idx; if the number of bytes to* complete doesn't align with a bvec boundary, then bv_len and
1933  residual I/O count 等于size
1935  如果bio_integrity(bio)则bio_integrity_trim(bio)