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:30:17
Last Modify:2020-03-16 21:24:45 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static int ioapic_irq_get_chip_state(struct irq_data *irqd, enum irqchip_irq_state which, bool *state)

Type:int

Parameter:

TypeParameterName
struct irq_data *irqd
enum irqchip_irq_statewhich
bool *state
1918  mcd = chip_data
1922  If which != IRQCHIP_STATE_ACTIVE Then Return -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  If irr && 0: edge, 1: level Then
1936  * state = true
1937  Break
1940  raw_spin_unlock( & ioapic_lock)
1941  Return 0