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

# irq\_alloc\_generic\_chip(9)

Allocate a generic chip and initialize it

## NAME

irq\_alloc\_generic\_chip - Allocate a generic chip and initialize it

## SYNOPSIS

**struct irq\_chip\_generic \* irq\_alloc\_generic\_chip(const char \*** *name***, int** *num\_ct***, unsigned int** *irq\_base***, void \_\_iomem \*** *reg\_base***, irq\_flow\_handler\_t** *handler***);**

## ARGUMENTS

*name*

Name of the irq chip

*num\_ct*

Number of irq\_chip\_type instances associated with this

*irq\_base*

Interrupt base nr for this chip

*reg\_base*

Register base address (virtual)

*handler*

Default flow handler associated with this chip

## DESCRIPTION

Returns an initialized irq\_chip\_generic structure. The chip defaults to the primary (index 0) irq\_chip\_type and *handler*

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
