函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型: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)

返回类型:struct request_queue

参数:

类型参数名称
struct blk_mq_tag_set *set
const struct blk_mq_ops *ops
unsigned intqueue_depth
unsigned intset_flags
2691  memset(set, 0, 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  如果ret则返回:错误号
2703  q等于blk_mq_init_queue(set)
2704  如果是错误
2705  blk_mq_free_tag_set(set)
2706  返回:q
2709  返回:q