函数逻辑报告

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:53
Last Modify:2020-03-16 21:24:45 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mp_alloc_timer_irq

函数原型:static int mp_alloc_timer_irq(int ioapic, int pin)

返回类型:int

参数:

类型参数名称
intioapic
intpin
2101  irq等于负1
2102  domain等于mp_ioapic_irqdomain(ioapic)
2104  如果domain
2107  ioapic_set_alloc_attr( & info, NUMA_NO_NODE, 0, 0)
2108  ioapic_id等于mpc_ioapic_id(ioapic)
2109  ioapic_pin等于pin
2110  mutex_lock( & ioapic_mutex)
2111  irq等于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
2112  mutex_unlock( & ioapic_mutex)
2115  返回:irq
调用者
名称描述
check_timerThis code may look a bit paranoid, but it's supposed to cooperate with* a wide range of boards and BIOS bugs. Fortunately only the timer IRQ* is so screwy. Thanks to Brian Perkins for testing/hacking this beast* fanatically on his truly buggy board.