函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-merge.c Create Date:2022-07-27 18:41:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ly try to merge bvecs into one sg if they are from two bios

函数原型:static inline bool __blk_segment_map_sg_merge(struct request_queue *q, struct bio_vec *bvec, struct bio_vec *bvprv, struct scatterlist **sg)

返回类型:bool

参数:

类型参数名称
struct request_queue *q
struct bio_vec *bvec
struct bio_vec *bvprv
struct scatterlist **sg
466  nbytes等于bv_len
468  如果非sg则返回:false
471  如果lengthnbytes大于queue_max_segment_size(q)则返回:false
474  如果非biovec_phys_mergeable(q, bvprv, bvec)则返回:false
477  length加等于nbytes
479  返回:true
调用者
名称描述
__blk_bios_map_sg