Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq-rdma.c Create Date:2022-07-28 18:05:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lk_mq_rdma_map_queues - provide a default queue mapping for rdma device*@map: CPU to hardware queue map

Proto:int blk_mq_rdma_map_queues(struct blk_mq_queue_map *map, struct ib_device *dev, int first_vec)

Type:int

Parameter:

TypeParameterName
struct blk_mq_queue_map *map
struct ib_device *dev
intfirst_vec
30  When queue < nr_queues cycle
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  If Not mask Then Go to fallback
35  for_each_cpu(cpu, mask)
36  mq_map[cpu] = queue_offset + queue
39  Return 0
41  fallback :
42  Return blk_mq_map_queues(map)