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.