| 函数逻辑报告 | 
| Source Code: block\blk-mq.c | Create Date:2022-07-27 18:46:45 | 
| Last Modify:2020-03-17 23:18:05 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:It is the actual release handler for mq, but we do it from* request queue's release handler for avoiding use-after-free* and headache because q->mq_kobj shouldn't have been introduced,* but we can't group ctx/kctx kobj without it.
函数原型:void blk_mq_release(struct request_queue *q)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct request_queue * | q | 
| 2641 | queue_for_each_hw_ctx(q, hctx, i) | 
| 2642 | WARN_ON_ONCE(hctx && 链表为空) | 
| 2646 | 删除链表项并重新初始化 | 
| 2647 | 递减引用计数对象 | 
| 2650 | 释放内存 | 
| 2656 | blk_mq_sysfs_deinit(q) | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |