Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:10:58
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_init_hctx

Proto: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)

Type:int

Parameter:

TypeParameterName
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  If init_hctx && init_hctx(hctx, driver_data, hctx_idx) Then Go to unregister_cpu_notifier
2292  If blk_mq_init_request(set, flush_rq, hctx_idx, @numa_node: NUMA node the storage adapter has been connected to. ) Then Go to exit_hctx
2295  Return 0
2297  exit_hctx :
2298  If exit_hctx Then exit_hctx(hctx, hctx_idx)
2300  unregister_cpu_notifier :
2301  blk_mq_remove_cpuhp(hctx)
2302  Return -1
Caller
NameDescribe
blk_mq_alloc_and_init_hctx