Function report |
Source Code:block\blk-mq.c |
Create Date:2022-07-28 17:11:14 |
Last Modify:2020-03-17 23:18:05 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:blk_mq_map_swqueue
Proto:static void blk_mq_map_swqueue(struct request_queue *q)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q |
2441 | @nr_ctx: Number of software queues. = 0 |
2450 | for_each_possible_cpu(i) |
2453 | If Not tags[hctx_idx] && Not __blk_mq_alloc_rq_map(set, hctx_idx) Then |
2464 | ctx = per_cpu_ptr( sw queues , i) |
2466 | If Not nr_queues Then |
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 | Continue |
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 | If pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Continue |
2482 | pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer |
2494 | When j < HCTX_MAX_TYPES cycle 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 | If Not @nr_ctx: Number of software queues. Then |
2513 | Continue |
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. ) |
Name | Describe |
---|---|
blk_mq_init_allocated_queue | |
__blk_mq_update_nr_hw_queues |
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 |