disable_hardirq(9)

disable_hardirq9

Disables an irq and waits for hardirq completion

Usage

bool disable_hardirq(unsigned int irq);

Arguments

irq

Interrupt to disable

Overview

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 <[email protected]>

Author.

Ingo Molnar <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.