---
name: "disable_hardirq"
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/disable_hardirq"
---

# disable\_hardirq(9)

disables an irq and waits for hardirq completion

## NAME

disable\_hardirq - disables an irq and waits for hardirq completion

## SYNOPSIS

**bool disable\_hardirq(unsigned int** *irq***);**

## ARGUMENTS

*irq*

Interrupt to disable

## DESCRIPTION

Disable the selected interrupt line. Enables and Disables are nested. This function waits for any pending hard IRQ handlers for this interrupt to complete before returning. If you use this function while holding a resource the hard IRQ handler may need you will deadlock.

When used to optimistically disable an interrupt from atomic context the return value must be checked.

## RETURN

false if a threaded handler is active.

This function may be called - with care - from IRQ context.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
