Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\io_apic.c Create Date:2022-07-28 08:29:46
Last Modify:2020-03-16 21:24:45 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloc_irq_from_domain

Proto:static int alloc_irq_from_domain(struct irq_domain *domain, int ioapic, unsigned int gsi, struct irq_alloc_info *info)

Type:int

Parameter:

TypeParameterName
struct irq_domain *domain
intioapic
unsigned intgsi
struct irq_alloc_info *info
962  bool legacy = false
963  irq = -1
964  type = type
967  Case type == IOAPIC_DOMAIN_LEGACY
972  If Not ioapic_initialized || gsi >= nr_legacy_irqs() Then irq = gsi
974  legacy = mp_is_legacy_irq(irq)
975  Break
976  Case type == IOAPIC_DOMAIN_STRICT
977  irq = gsi
978  Break
979  Case type == IOAPIC_DOMAIN_DYNAMIC
980  Break
981  Default
982  WARN(1, "ioapic: unknown irqdomain type %d\n", type)
983  Return -1
986  Return __irq_domain_alloc_irqs(domain, irq, 1, ioapic_alloc_attr_node(info), info, legacy, NULL)
Caller
NameDescribe
mp_map_pin_to_irq