函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_check_expired

函数原型:static bool blk_mq_check_expired(struct blk_mq_hw_ctx *hctx, struct request *rq, void *priv, bool reserved)

返回类型:bool

参数:

类型参数名称
struct blk_mq_hw_ctx *hctx
struct request *rq
void *priv
boolreserved
858  next等于priv
864  如果非blk_mq_req_expired(rq, next)则返回:true
876  如果非_inc_not_zero - increment a refcount unless it is 0*@r: the refcount to increment* Similar to atomic_inc_not_zero(), but will saturate at REFCOUNT_SATURATED* and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the则返回:true
885  如果blk_mq_req_expired(rq, next)则blk_mq_rq_timed_out(rq, reserved)
888  如果is_flush_rq(rq, hctx)则* completion callback.(rq, 0)
890  否则如果_dec_and_test - decrement a refcount and test if it is 0*@r: the refcount* Similar to atomic_dec_and_test(), it will WARN on underflow and fail to* decrement when saturated at REFCOUNT_SATURATED__blk_mq_free_request(rq)
893  返回:true