Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct irq_domain *domain
struct device *dev
intnvec
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)
220  msi_dev = pdev
221  If is_msix Then
222  type = X86_IRQ_ALLOC_TYPE_MSIX
223  Else
224  type = X86_IRQ_ALLOC_TYPE_MSI
225  flags |= X86_IRQ_ALLOC_CONTIGUOUS_VECTORS
228  Return 0