Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lk_mq_virtio_map_queues - provide a default queue mapping for virtio device*@qmap: CPU to hardware queue map

Proto:int blk_mq_virtio_map_queues(struct blk_mq_queue_map *qmap, struct virtio_device *vdev, int first_vec)

Type:int

Parameter:

TypeParameterName
struct blk_mq_queue_map *qmap
struct virtio_device *vdev
intfirst_vec
30  If Not get_vq_affinity Then Go to fallback
33  When queue < nr_queues cycle
34  mask = get_vq_affinity(vdev, first_vec + queue)
35  If Not mask Then Go to fallback
38  for_each_cpu(cpu, mask)
39  mq_map[cpu] = queue_offset + queue
42  Return 0
43  fallback :
44  Return blk_mq_map_queues(qmap)