Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\i8259.c Create Date:2022-07-28 07:40:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:i8259A_irq_pending

Proto:static int i8259A_irq_pending(unsigned int irq)

Type:int

Parameter:

TypeParameterName
unsigned intirq
98  mask = 1 << irq
102  raw_spin_lock_irqsave( & i8259A_lock, flags)
103  If irq < 8 Then ret = inb(8259A PIC registers ) & mask
105  Else ret = inb(PIC_SLAVE_CMD) & mask >> 8
107  raw_spin_unlock_irqrestore( & i8259A_lock, flags)
109  Return ret