函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-27 18:46:19
Last Modify:2020-03-17 23:18:05 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blk_mq_init_hctx

函数原型:static int blk_mq_init_hctx(struct request_queue *q, struct blk_mq_tag_set *set, struct blk_mq_hw_ctx *hctx, unsigned hctx_idx)

返回类型:int

参数:

类型参数名称
struct request_queue *q
struct blk_mq_tag_set *set
struct blk_mq_hw_ctx *hctx
unsignedhctx_idx
2282  @queue_num: Index of this hardware queue. 等于hctx_idx
2284  puhp_state_add_instance_nocalls - Add an instance for a state without* invoking the startup callback
2286  @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[hctx_idx]
2288  如果init_hctxinit_hctx(hctx, driver_data, hctx_idx)则转到:unregister_cpu_notifier
2292  如果blk_mq_init_request(set, flush_rq, hctx_idx, @numa_node: NUMA node the storage adapter has been connected to. )则转到:exit_hctx
2295  返回:0
2297  exit_hctx :
2298  如果exit_hctxexit_hctx(hctx, hctx_idx)
2300  unregister_cpu_notifier :
2301  blk_mq_remove_cpuhp(hctx)
2302  返回:负1
调用者
名称描述
blk_mq_alloc_and_init_hctx