Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_mq_map_queues

Proto:int blk_mq_map_queues(struct blk_mq_queue_map *qmap)

Type:int

Parameter:

TypeParameterName
struct blk_mq_queue_map *qmap
37  map = mq_map
38  nr_queues = nr_queues
39  q = 0
41  for_each_possible_cpu(cpu)
42  map[cpu] = -1
48  for_each_present_cpu(cpu)
49  If q >= nr_queues Then Break
51  map[cpu] = queue_index(qmap, nr_queues, q++)
54  for_each_possible_cpu(cpu)
55  If map[cpu] != -1 Then Continue
63  If q < nr_queues Then
65  Else
67  If first_sibling == cpu Then map[cpu] = queue_index(qmap, nr_queues, q++)
69  Else map[cpu] = map[first_sibling]
74  Return 0
Caller
NameDescribe
__blk_mq_update_nr_hw_queues
blk_mq_virtio_map_queueslk_mq_virtio_map_queues - provide a default queue mapping for virtio device*@qmap: CPU to hardware queue map
blk_mq_rdma_map_queueslk_mq_rdma_map_queues - provide a default queue mapping for rdma device*@map: CPU to hardware queue map