Hi Fabio, Thanks for the reply. Ya I got your point, and I did the same thing by exporting the sysfs gpio and poll for value attribute It works fine but the thing is time. Actually my interrupts may be every 50 micro seconds. So I thought of dealing in kernel mode itself. What's your suggestion ? Sent from my HTC
----- Reply message ----- From: "Fabio Pozzi" <[email protected]> Date: Sat, Oct 6, 2012 2:29 pm Subject: Gpio interrupt shall pass the signal to application To: "jeshwanth Kumar N K" <[email protected]> Cc: "kernelnewbies" <[email protected]> I think you could use sysfs_notify to send the notification and use select() or poll() to wait for changes in the sysfs file in the interrupt handler routine. You can find an example of this in the gpio-fan driver. Hope it helps -- Saluti, Fabio Pozzi
_______________________________________________ Kernelnewbies mailing list [email protected] http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
