函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq-tag.c Create Date:2022-07-27 18:47:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:If a previously inactive queue goes active, bump the active user count.* We need to do this before try to allocate driver tag, then even if fail* to get tag when first time, the other shared-tag users could reserve* budget for it.

函数原型:bool __blk_mq_tag_busy(struct blk_mq_hw_ctx *hctx)

返回类型:bool

参数:

类型参数名称
struct blk_mq_hw_ctx *hctx
26  如果非test_bit(BLK_MQ_S_TAG_ACTIVE, & @state: BLK_MQ_S_* flags. Defines the state of the hw* queue (active, scheduled to restart, stopped).)且非st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier).atomic_inc( & active_queues)
30  返回:true