synchronize_hardirq(9)

synchronize_hardirq9

Wait for pending hard irq handlers (on other cpus)

Usage

bool synchronize_hardirq(unsigned int irq);

Arguments

irq

interrupt number to wait for

Overview

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 IRQ handler may need you will deadlock. It does not take associated threaded handlers into account.

Do not use this for shutdown scenarios where you must be sure that all parts (hardirq and threaded handler) have completed.

Return

false if a threaded handler is active.

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

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

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.