Hi Brandon I read through the link, very informative thanks.I can create a thread to do the polling and signal me when its ready. But how to really write an ISR in arm. I see a lot of guides but they say that it will work in Intel processors but they are not sure about ARM. For sure from my readings i see that i need a kernel object to handle an ISR, But how to really do that. One example about how to handle interrupts is in http://stackoverflow.com/questions/15245626/simple-interrupt-handler-request-irq-returns-error-code-22 The other one is request_threaded_irq() as mentioned by Kavita in the above post. Is there any How to and guide to writing one. Any links. Thanks.
On Wednesday, September 10, 2014 12:59:08 AM UTC+5:30, Brandon I wrote: > > See UIO: https://www.kernel.org/doc/htmldocs/uio-howto/ > > The uio_pruss.c driver that comes with the pru package is a good example. > > > I have written a kernel module that registers interrupts on the rising > edge on a GPIO pin and want to relay this message to user space. > > The sysfs gpio interface already does this. Check out the code. > > On Thursday, August 28, 2014 2:44:12 AM UTC-7, sid...@gmail.com wrote: >> >> I have read online that we can't handle interrupts from user >> space. Instead - >> 1) We can write a kernel thread and have that thread wait on an event. >> 2) Once the interrupt occurs, send one asynchronous event from the kernel >> module/driver to user space where we will have one signal handler with >> FASYNC to tackle this >> >> I have written a kernel module that registers interrupts on the rising >> edge on a GPIO pin and want to relay this message to user space. How do I >> go about implementing the above? >> >> Thanks! >> > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.