Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hctx_lock

Proto:static void hctx_lock(struct blk_mq_hw_ctx *hctx, int *srcu_idx)__acquires(hctx->srcu)

Type:void

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
int *srcu_idx
619  If Not (@flags: BLK_MQ_F_* flags. Defines the behaviour of the queue. & BLK_MQ_F_BLOCKING) Then
621  srcu_idx = 0
622  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
623  Else srcu_idx = srcu_read_lock - register a new reader for an SRCU-protected structure
Caller
NameDescribe
__blk_mq_run_hw_queue
blk_mq_run_hw_queue
blk_mq_try_issue_directly
blk_mq_request_issue_directly