函数逻辑报告 |
Source Code:block\blk-mq.c |
Create Date:2022-07-27 18:46:35 |
| Last Modify:2020-03-17 23:18:05 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:blk_mq_map_swqueue
函数原型:static void blk_mq_map_swqueue(struct request_queue *q)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct request_queue * | q |
| 2440 | 清空全部CPU信息 |
| 2441 | @nr_ctx: Number of software queues. 等于0 |
| 2453 | 如果非tags[hctx_idx]且非__blk_mq_alloc_rq_map(set, hctx_idx)则 |
| 2464 | ctx等于per_cpu_ptr( sw queues , i) |
| 2466 | 如果非nr_queues则 |
| 2467 | hctxs[j]等于lk_mq_map_queue_type() - map (hctx_type,cpu) to hardware queue*@q: request queue*@type: the hctx type index*@cpu: CPU |
| 2469 | 继续下一循环 |
| 2472 | hctx等于lk_mq_map_queue_type() - map (hctx_type,cpu) to hardware queue*@q: request queue*@type: the hctx type index*@cpu: CPU |
| 2479 | 如果测试CPU信息则继续下一循环 |
| 2482 | 设置CPU信息 |
| 2494 | 以j小于HCTX_MAX_TYPES循环hctxs[j]等于lk_mq_map_queue_type() - map (hctx_type,cpu) to hardware queue*@q: request queue*@type: the hctx type index*@cpu: CPU |
| 2504 | 如果非@nr_ctx: Number of software queues. 则 |
| 2513 | 继续下一循环 |
| 2516 | @tags: Tags owned by the block driver. A tag at this set is only* assigned when a request is dispatched from a hardware queue.等于tags[i] |
| 2517 | WARN_ON(!@tags: Tags owned by the block driver. A tag at this set is only* assigned when a request is dispatched from a hardware queue.) |
| 2524 | sbitmap_resize( & @ctx_map: Bitmap for each software queue. If bit is on, there is a* pending request in that software queue., @nr_ctx: Number of software queues. ) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |