---
name: "drm_irq_install"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_irq_install"
---

# drm\_irq\_install(9)

install IRQ handler

## NAME

drm\_irq\_install - install IRQ handler

## SYNOPSIS

**int drm\_irq\_install(struct drm\_device \*** *dev***, int** *irq***);**

## ARGUMENTS

*dev*

DRM device

*irq*

IRQ number to install the handler for

## DESCRIPTION

Initializes the IRQ related data. Installs the handler, calling the driver **irq\_preinstall** and **irq\_postinstall** functions before and after the installation.

This is the simplified helper interface provided for drivers with no special needs. Drivers which need to install interrupt handlers for multiple interrupts must instead set drm\_device-\>irq\_enabled to signal the DRM core that vblank interrupts are available.

## RETURNS

Zero on success or a negative error code on failure.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
