函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\io_apic.c Create Date:2022-07-27 09:29:19
Last Modify:2020-03-16 21:24:45 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Need special handling for ISA IRQs because there may be multiple IOAPIC pins* sharing the same ISA IRQ number and irqdomain only supports 1:1 mapping* between IOAPIC pin and IRQ number. A typical IOAPIC has 24 pins, pin 0-15 are

函数原型:static int alloc_isa_irq_from_domain(struct irq_domain *domain, int irq, int ioapic, int pin, struct irq_alloc_info *info)

返回类型:int

参数:

类型参数名称
struct irq_domain *domain
intirq
intioapic
intpin
struct irq_alloc_info *info
1006  irq_data等于irq_get_irq_data(irq)
1007  node等于ioapic_alloc_attr_node(info)
1014  如果irq_dataparent_data
1015  如果非mp_check_pin_attr(irq, info)则返回:负EBUSY
1017  如果The common case is 1:1 IRQ<->pin mappings. Sometimes there are* shared ISA-space IRQs, so we have to support them. We are super* fast in the common case, and fast for shared ISA-space IRQs.则返回:负ENOMEM
1020  否则
1021  flags或等于X86_IRQ_ALLOC_LEGACY
1022  irq等于__irq_domain_alloc_irqs(domain, irq, 1, node, info, true, NULL)
1024  如果irq大于等于0则
1027  isa_irq = true
1031  返回:irq
调用者
名称描述
mp_map_pin_to_irq
mp_alloc_timer_irq