I am writing a user space driver which needs to handle a interrupt.
Now, I need to the irq number for a specific GPIO, where do I find
this information.
The gpio_to_irq function exists only in kernel space.
Thanks in advance.
Regards,
Karthik
User space drivers cannot use interrupts.
You might look into the UIO driver:
http://www.kernel.org/doc/htmldocs/uio-howto.html
Philip
>
> Thanks in advance.
>
> Regards,
> Karthik
>
> --
> You received this message because you are subscribed to the Google Groups "Beagle Board" group.
> To post to this group, send email to beagl...@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
>
>
>
>
Jerry
On Jan 21, 11:40 am, Vedurumudi <svedurum...@gmail.com> wrote:
> Thats intersting. Im yet to read the howto pointed to by Philip, but as a
> first thought I was thinking maybe you can setup a kernel driver that
> schedules a tasklet which inturn sends a software signal to your user-space
> driver/program. I'm not sure if that (sending a signal from a kernel-tasklet
> to a user-space app) works, but just a thought.
>
> -Sri.
>
> On Thu, Jan 21, 2010 at 8:05 AM, Philip Balister
> <philip.balis...@gmail.com>wrote:
>
>
>
> > On Thu, Jan 21, 2010 at 4:25 AM, Karthik <karthikshanmu...@gmail.com>
> > wrote:
> > > Hi,
>
> > > I am writing a user space driver which needs to handle a interrupt.
> > > Now, I need to the irq number for a specific GPIO, where do I find
> > > this information.
>
> > > The gpio_to_irq function exists only in kernel space.
>
> > User space drivers cannot use interrupts.
>
> > You might look into the UIO driver:
>
> >http://www.kernel.org/doc/htmldocs/uio-howto.html
>
> > Philip
>
> > > Thanks in advance.
>
> > > Regards,
> > > Karthik
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > "Beagle Board" group.
> > > To post to this group, send email to beagl...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > beagleboard...@googlegroups.com<beagleboard%2Bunsubscribe@googlegr oups.com>
> > .
> > > For more options, visit this group at
> >http://groups.google.com/group/beagleboard?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Beagle Board" group.
> > To post to this group, send email to beagl...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > beagleboard...@googlegroups.com<beagleboard%2Bunsubscribe@googlegr oups.com>
Read the UIO docs ..... This is pretty much what it does.
Philip
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.