irq handler in user programs

irq handler in user programs

Post by Giovanni Organtin » Thu, 20 Mar 1997 04:00:00



Hello,
does anybody know if it is possible (and how) to set up a different
irq handler for a given device in user programs? I'm trying to write
a program like this:

#include <stdio.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <asm/irq.h>

void irq_handler(int IRQ) {
  printf("CIAO\n");

Quote:}

int main() {
  void * handler = &irq_handler;
  request_irq(3,handler,SA_INTERRUPT,"test",NULL);
  return 0;

Quote:}

How can I compile it (if possible)? Thanks a lot.

                                           Giovanni Organtini
-------------------------------------------------------------
Universita' di Roma TRE & INFN-Roma
Via della Vasca Navale, 84
00146 Roma
Tel. +39-6-5517.7242 (Fax: +39-6-5579.303)