---
name: "irq_set_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_set_irqchip_state"
---

# irq\_set\_irqchip\_state(9)

set the state of a forwarded interrupt.

## NAME

irq\_set\_irqchip\_state - set the state of a forwarded interrupt.

## SYNOPSIS

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

## ARGUMENTS

*irq*

Interrupt line that is forwarded to a VM

*which*

State to be restored (one of IRQCHIP\_STATE\_\*)

*val*

Value corresponding to *which*

## DESCRIPTION

This call sets the internal irqchip state of an interrupt, depending on the value of *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
