Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:09:51
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__blk_mq_delay_run_hw_queue

Proto:static void __blk_mq_delay_run_hw_queue(struct blk_mq_hw_ctx *hctx, bool async, unsigned long msecs)

Type:void

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
boolasync
unsigned longmsecs
1430  If Value for the false possibility is greater at compile time(blk_mq_hctx_stopped(hctx)) Then Return
1433  If Not async && Not (@flags: BLK_MQ_F_* flags. Defines the behaviour of the queue. & BLK_MQ_F_BLOCKING) Then
1434  cpu = get_cpu()
1437  put_cpu()
1438  Return
1441  put_cpu()
1444  kblockd_mod_delayed_work_on(It'd be great if the workqueue API had a way to pass* in a mask and had some smarts for more clever placement.* For now we just round-robin here, switching for every* BLK_MQ_CPU_WORK_BATCH queued items., & @run_work: Used for scheduling a hardware queue run at a later time., msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than)
Caller
NameDescribe
blk_mq_delay_run_hw_queue
blk_mq_run_hw_queue