函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lk_mq_pci_map_queues - provide a default queue mapping for PCI device*@qmap: CPU to hardware queue map

函数原型:int blk_mq_pci_map_queues(struct blk_mq_queue_map *qmap, struct pci_dev *pdev, int offset)

返回类型:int

参数:

类型参数名称
struct blk_mq_queue_map *qmap
struct pci_dev *pdev
intoffset
32 queue小于nr_queues循环
33  mask等于pci_irq_get_affinity(pdev, queue + offset)
34  如果非mask则转到:fallback
37  遍历CPU(cpu, mask)
38  mq_map[cpu]等于queue_offsetqueue
41  返回:0
43  fallback :
44  WARN_ON_ONCE(nr_queues > 1)
45  blk_mq_clear_mq_map(qmap)
46  返回:0