函数逻辑报告

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

函数名称:Interrupt shutdown masks the ioapic pin, but the interrupt might already* be in flight, but not yet serviced by the target CPU. That means* __synchronize_hardirq() would return and claim that everything is calmed* down

函数原型:static int ioapic_irq_get_chip_state(struct irq_data *irqd, enum irqchip_irq_state which, bool *state)

返回类型:int

参数:

类型参数名称
struct irq_data *irqd
enum irqchip_irq_statewhich
bool *state
1918  mcd等于和中断控制器相关的私有数据
1922  如果which不等于IRQCHIP_STATE_ACTIVE则返回:负EINVAL
1925  * state = false
1926  raw_spin_lock( & ioapic_lock)
1927  for_each_irq_pin(p, irq_2_pin)
1928  rentry等于__ioapic_read_entry(apic, pin)
1935  如果irr 0: edge, 1: level
1936  * state = true
1937  退出
1940  raw_spin_unlock( & ioapic_lock)
1941  返回:0