函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_freeze_queue_wait

函数原型:void blk_mq_freeze_queue_wait(struct request_queue *q)

返回类型:void

参数:

类型参数名称
struct request_queue *q
146  wait_event - sleep until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_UNINTERRUPTIBLE) until the*@condition evaluates to true(mq_freeze_wq, 判断percpu无计数引用)
调用者
名称描述
blk_freeze_queueGuarantee no request is in use, so we can change any data structure of* the queue afterward.