WARNING - This is an RTLinux v1.x compatibility function. For new programs, please see rtl_request_irq(3). #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)); |
This is an RTLinux v1.x compatibility function. For new programs, please see rtl_request_irq(3).
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.
irq is not a valid IRQ number, or handler is NULL.
irq already has a handler. You must first call free_RTirq to make the IRQ available.
©1997 Jerry Epplin.
Modifications for RTLinux 2.x and 3.x by Michael Barabanov. ©2001 FSMLabs Inc.
All rights reserved.