Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int blk_mq_pci_map_queues(struct blk_mq_queue_map *qmap, struct pci_dev *pdev, int offset)

Type:int

Parameter:

TypeParameterName
struct blk_mq_queue_map *qmap
struct pci_dev *pdev
intoffset
32  When queue < nr_queues cycle
33  mask = pci_irq_get_affinity(pdev, queue + offset)
34  If Not mask Then Go to fallback
37  for_each_cpu(cpu, mask)
38  mq_map[cpu] = queue_offset + queue
41  Return 0
43  fallback :
44  WARN_ON_ONCE(nr_queues > 1)
45  blk_mq_clear_mq_map(qmap)
46  Return 0