函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hctx_lock

函数原型:static void hctx_lock(struct blk_mq_hw_ctx *hctx, int *srcu_idx)__acquires(hctx->srcu)

返回类型:void

参数:

类型参数名称
struct blk_mq_hw_ctx *hctx
int *srcu_idx
619  如果非@flags: BLK_MQ_F_* flags. Defines the behaviour of the queue. 按位与BLK_MQ_F_BLOCKING的值则
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  否则srcu_idx等于srcu_read_lock - register a new reader for an SRCU-protected structure
调用者
名称描述
__blk_mq_run_hw_queue
blk_mq_run_hw_queue
blk_mq_try_issue_directly
blk_mq_request_issue_directly