函数逻辑报告 |
Source Code:block\kyber-iosched.c |
Create Date:2022-07-27 19:27:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:kyber_init_hctx
函数原型:static int kyber_init_hctx(struct blk_mq_hw_ctx *hctx, unsigned int hctx_idx)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct blk_mq_hw_ctx * | hctx | |
unsigned int | hctx_idx |
463 | kqd等于elevator_data |
467 | khd等于kmalloc_node(khd的长度, GFP_KERNEL, @numa_node: NUMA node the storage adapter has been connected to. ) |
471 | kcqs等于kmalloc_array_node(@nr_ctx: Number of software queues. , sizeof(structkyber_ctx_queue), GFP_KERNEL, @numa_node: NUMA node the storage adapter has been connected to. ) |
480 | 以i小于KYBER_NUM_DOMAINS循环 |
485 | 转到:err_kcqs |
489 | spin_lock_init( & lock) |
491 | 以i小于KYBER_NUM_DOMAINS循环 |
501 | cur_domain等于0 |
502 | batching等于0 |
504 | @sched_data: Pointer owned by the IO scheduler attached to a request* queue. It's up to the IO scheduler how to use this pointer.等于khd |
505 | sbitmap_queue_min_shallow_depth( & bitmap_tags, * Async request percentage, converted to per-word depth for * sbitmap_get_shallow().) |
508 | 返回:0 |
510 | err_kcqs : |
511 | 释放内存 |
512 | err_khd : |
513 | 释放内存 |
514 | 返回:负ENOMEM |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |