Function report |
Source Code:block\kyber-iosched.c |
Create Date:2022-07-28 17:52:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kyber_init_hctx
Proto:static int kyber_init_hctx(struct blk_mq_hw_ctx *hctx, unsigned int hctx_idx)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct blk_mq_hw_ctx * | hctx | |
unsigned int | hctx_idx |
463 | kqd = elevator_data |
467 | khd = kmalloc_node( size of 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. ) |
477 | When i < @nr_ctx: Number of software queues. cycle kyber_ctx_queue_init( & kcqs[i]) |
480 | When i < KYBER_NUM_DOMAINS cycle |
485 | Go to err_kcqs |
489 | Process spin lock initialization( & lock) |
491 | When i < KYBER_NUM_DOMAINS cycle |
493 | if set, sbq_wait is accounted = NULL |
498 | atomic_set( & wait_index[i], 0) |
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 | Return 0 |
510 | err_kcqs : |
512 | err_khd : |
514 | Return -ENOMEM |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |