函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static int __add_pin_to_irq_node(struct mp_chip_data *data, int node, int apic, int pin)

返回类型:int

参数:

类型参数名称
struct mp_chip_data *data
intnode
intapic
intpin
380  for_each_irq_pin(entry, irq_2_pin)
381  如果apic恒等于apicpin恒等于pin则返回:0
384  entry等于根据内存节点分配内存
385  如果非entry
386  打印错误信息("can not alloc irq_pin_list (%d,%d,%d)\n", node, apic, pin)
388  返回:负ENOMEM
390  apic等于apic
391  pin等于pin
392  添加链表项
394  返回:0
调用者
名称描述
add_pin_to_irq_node
alloc_isa_irq_from_domainNeed 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