函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lk_mq_rdma_map_queues - provide a default queue mapping for rdma device*@map: CPU to hardware queue map

函数原型:int blk_mq_rdma_map_queues(struct blk_mq_queue_map *map, struct ib_device *dev, int first_vec)

返回类型:int

参数:

类型参数名称
struct blk_mq_queue_map *map
struct ib_device *dev
intfirst_vec
30 queue小于nr_queues循环
31  mask等于_get_vector_affinity - Get the affinity mappings of a given completion* vector*@device: the rdma device*@comp_vector: index of completion vector* Returns NULL on failure, otherwise a corresponding cpu map of the* completion vector (returns all-cpus map if
32  如果非mask则转到:fallback
35  遍历CPU(cpu, mask)
36  mq_map[cpu]等于queue_offsetqueue
39  返回:0
41  fallback :
42  返回:blk_mq_map_queues(map)