函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_attempt_req_merge

函数原型:int blk_attempt_req_merge(struct request_queue *q, struct request *rq, struct request *next)

返回类型:int

参数:

类型参数名称
struct request_queue *q
struct request *rq
struct request *next
859  free等于For non-mq, this has to be called with the request spinlock acquired.* For mq with scheduling, the appropriate queue wide lock should be held.
860  如果free
861  blk_put_request(free)
862  返回:1
865  返回:0
调用者
名称描述
elv_attempt_insert_mergeAttempt to do an insertion back merge. Only check for the case where* we can append 'rq' to an existing request, so we can throw 'rq' away* afterwards.* Returns true if we merged, false otherwise