函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ll_back_merge_fn

函数原型:int ll_back_merge_fn(struct request *req, struct bio *bio, unsigned int nr_segs)

返回类型:int

参数:

类型参数名称
struct request *req
struct bio *bio
unsigned intnr_segs
594  如果req_gap_back_merge(req, bio)则返回:0
596  如果blk_integrity_rq(req)且integrity_req_gap_back_merge(req, bio)则返回:0
599  如果blk_rq_sectors(req)加bio_sectors(bio)大于blk_rq_get_max_sectors(req, lk_rq_pos() : the current sector* blk_rq_bytes() : bytes left in the entire request* blk_rq_cur_bytes() : bytes left in the current segment* blk_rq_err_bytes() : bytes left till the next error boundary* blk_rq_sectors() : sectors left in the entire )则
601  req_set_nomerge(q, req)
602  返回:0
605  返回:ll_new_hw_segment(req, bio, nr_segs)
调用者
名称描述
blk_rq_append_bioAppend a bio to a passthrough request. Only works if the bio can be merged* into the request based on the driver constraints.