Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| struct blk_mq_queue_map * | qmap | |
| struct pci_dev * | pdev | |
| int | offset |
| 33 | mask = pci_irq_get_affinity(pdev, queue + offset) |
| 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) |
| 46 | Return 0 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |