disable_irq

Name

disable_irq --  disable an irq and wait for completion

Synopsis

void disable_irq (unsigned int irq);

Arguments

irq

Interrupt to disable

Description

Disable the selected interrupt line. Disables of an interrupt stack. That is for two disables you need two enables. This function waits for any pending IRQ handlers for this interrupt to complete before returning. If you use this function while holding a resource the IRQ handler may need you will deadlock.

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