函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_req_expired

函数原型:static bool blk_mq_req_expired(struct request *rq, unsigned long *next)

返回类型:bool

参数:

类型参数名称
struct request *rq
unsigned long *next
839  如果lk_mq_rq_state() - read the current MQ_RQ_* state of a request*@rq: target request.不等于MQ_RQ_IN_FLIGHT则返回:false
841  如果rq_flags按位与->timeout has been called, don't expire again 则返回:false
844  deadline等于READ_ONCE(deadline)
845  如果time_after_eq(jiffies, deadline)则返回:true
848  如果next恒等于0则next等于deadline
850  否则如果These inlines deal with timer wrapping correctly. You are * strongly encouraged to use them* 1. Because people otherwise forget* 2. Because if the timer wrap changes in future you won't have to* alter your driver code.( * next, deadline)则next等于deadline
852  返回:false
调用者
名称描述
blk_mq_check_expired