---
name: "irq_get_irqchip_state"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/irq_get_irqchip_state"
---

# irq\_get\_irqchip\_state(9)

returns the irqchip state of a interrupt.

## NAME

irq\_get\_irqchip\_state - returns the irqchip state of a interrupt.

## SYNOPSIS

**int irq\_get\_irqchip\_state(unsigned int** *irq***, enum irqchip\_irq\_state** *which***, bool \*** *state***);**

## ARGUMENTS

*irq*

Interrupt line that is forwarded to a VM

*which*

One of IRQCHIP\_STATE\_\* the caller wants to know about

*state*

a pointer to a boolean where the state is to be storeed

## DESCRIPTION

This call snapshots the internal irqchip state of an interrupt, returning into *state* the bit corresponding to stage *which*

This function should be called with preemption disabled if the interrupt controller has per-cpu registers.

## AUTHORS

**Thomas Gleixner** \<tglx@linutronix.de\>

Author.

**Ingo Molnar** \<mingo@elte.hu\>

Author.

## COPYRIGHT
