Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Helper for setting up a queue with mq ops, given queue depth, and* the passed in mq ops flags.

Proto:struct request_queue *blk_mq_init_sq_queue(struct blk_mq_tag_set *set, const struct blk_mq_ops *ops, unsigned int queue_depth, unsigned int set_flags)

Type:struct request_queue

Parameter:

TypeParameterName
struct blk_mq_tag_set *set
const struct blk_mq_ops *ops
unsigned intqueue_depth
unsigned intset_flags
2691  memset(set, 0, size of set )
2692  ops = ops
2693  nr_hw_queues = 1
2694  nr_maps = 1
2695  queue_depth = queue_depth
2696  numa_node = NUMA_NO_NODE
2697  flags = set_flags
2699  ret = Alloc a tag set to be associated with one or more request queues.* May fail with EINVAL for various error conditions. May adjust the* requested depth down, if it's too large. In that case, the set* value will be stored in set->queue_depth.
2700  If ret Then Return ERR_PTR(ret)
2703  q = blk_mq_init_queue(set)
2704  If IS_ERR(q) Then
2705  blk_mq_free_tag_set(set)
2706  Return q
2709  Return q