views:

108

answers:

1

Following the feedback i got from:
http://stackoverflow.com/questions/2683682/new-to-linux-kernel-driver-development/2683819

In linux-kernel (v 2.6.32),
I have written a driver (.c file) by comparing it with an existing driver
and "borrowing" heavily from its code.

The driver is registered fine and init() and probe() are working fine.
I am also able to access the peripheral device registers. :-)

However i am a bit hazy about the IRQ/ISR.
The peripheral-device is a input device and raises an interrupt on a GPIO pin.

How do i move ahead from my current state ( init(), probe(), etc. )
to be able to handle the IRQ and execute my ISR function??

Many-Thanks in Advance

A: 

Did you look at the Linux Device Drivers (http://lwn.net/Kernel/LDD3/) book? It has a whole chapter on interrupt handling. It should provide the background information you need.

JayM