Function report |
Source Code:arch\x86\kernel\apic\msi.c |
Create Date:2022-07-28 08:31:18 |
| Last Modify:2020-03-17 10:05:02 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pci_msi_prepare
Proto:int pci_msi_prepare(struct irq_domain *domain, struct device *dev, int nvec, msi_alloc_info_t *arg)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct irq_domain * | domain | |
| struct device * | dev | |
| int | nvec | |
| msi_alloc_info_t * | arg |
| 216 | pdev = to_pci_dev(dev) |
| 217 | desc = first_pci_msi_entry(pdev) |
| 219 | init_irq_alloc_info(arg, NULL) |
| 221 | If is_msix Then |
| 222 | type = X86_IRQ_ALLOC_TYPE_MSIX |
| 223 | Else |
| 224 | type = X86_IRQ_ALLOC_TYPE_MSI |
| 228 | 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 |