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

# request\_any\_context\_irq(9)

allocate an interrupt line

## NAME

request\_any\_context\_irq - allocate an interrupt line

## SYNOPSIS

**int request\_any\_context\_irq(unsigned int** *irq***, irq\_handler\_t** *handler***, unsigned long** *flags***, const char \*** *name***, void \*** *dev\_id***);**

## ARGUMENTS

*irq*

Interrupt line to allocate

*handler*

Function to be called when the IRQ occurs. Threaded handler for threaded interrupts.

*flags*

Interrupt type flags

*name*

An ascii name for the claiming device

*dev\_id*

A cookie passed back to the handler function

## DESCRIPTION

This call allocates interrupt resources and enables the interrupt line and IRQ handling. It selects either a hardirq or threaded handling method depending on the context.

On failure, it returns a negative value. On success, it returns either IRQC\_IS\_HARDIRQ or IRQC\_IS\_NESTED.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
