The HyperNews Linux KHG Discussion Pages

## hardware interrupt handler without device driver?

  Forum: Device Drivers
  Keywords: Hardware Interrupt
  Date: Sat, 16 Aug 1997 00:01:13 GMT
  From: Russ Gritzo <gritzo@lanl.gov>

I want to respond to a hardware interrupt from a data acquisition card. I would like to write a user program with an interrupt handler. I don't particularly want to write a device driver. I wrote a test code with a dummy interrupt service routine, calling request_irq() and enable_irq() out of main(). I was hoping for an executeable that would attach the interrupt service routine. compiling with gcc -O -D__KERNEL__ -o testirq testirq.c gives me undefined reference to request_irq and enable_irq. I have included all the .h files referenced in the man pages for these functions. What am I missing? Is it possible (reasonable, etc) to write a user program that uses a hardware interrupt, or must it be a device driver? Any examples of codes like this? Thanks. R.