request_RTirq(3)

request_RTirq3

Install an interrupt handler

Usage

#define MODULE
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/version.h>
#include <linux/errno.h>
#include <linux/rtf.h>
#include <asm/rt_irq.h>

int request_RTirq(unsigned int irq, void (*handler)(void));

Warning

This is RTL v1.x compatibility function. Please do not use it for new programs.

Overview

request_RTirq installs handler as an interrupt service routine for IRQ level irq. handler is then invoked whenever interrupt number irq occurs. The interrupt service routine can be uninstalled using free_RTirq.

Return value

On success, 0 is returned. On failure, a negative value is returned as described below.

Errors

-EINVAL

irq is not a valid IRQ number, or handler is NULL.

-EBUSY

irq already has a handler. You must first call free_RTirq to make the IRQ available.

From rtlinux 2.0rel-1 in Debian 2.2 (Potato). Parsed by carta from the page's man source.