Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-timeout.c Create Date:2022-07-28 17:06:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_rq_timeout

Proto:unsigned long blk_rq_timeout(unsigned long timeout)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longtimeout
97  maxt = d_jiffies_up - function to round jiffies up to a full second*@j: the time in (absolute) jiffies that should be rounded* This is the same as round_jiffies() except that it will never* round down
98  If 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.(timeout, maxt) Then timeout = maxt
101  Return timeout
Caller
NameDescribe
blk_add_timerlk_add_timer - Start timeout timer for a single request*@req: request that is about to start running.* Notes:* Each request has its own timer, and as it is added to the queue, we* set up the timer. When the request completes, we cancel the timer.