User space <==> kernel space for device wakeups.

Jeshwanth Kumar N K jeshkumar555 at gmail.com
Wed Oct 8 11:44:43 EDT 2014


Wayback when I was working on some project to wake up userspace program for
every rising edge in GPIO pin (hall sensor), I use to send signal to the
PID from kernel, before that userspace has to register its PID with kernel
module. Max interrupts I have tested is some 100 times per second I.e. 100
times wakes up userspace application per second. It was working quite
well.. But today also I don't know what other thing can be used for this
case, as it is asynchronous.

Sent from my Android phone with Gmail. Please excuse my brevity.
On 08-Oct-2014 7:03 pm, "Greg KH" <greg at kroah.com> wrote:

> On Wed, Oct 08, 2014 at 04:39:17PM +0900, manty kuma wrote:
> > Hi,
> > I want a user process to be notified on device wakeup so that I can
> print some
> > related information.
>
> Really?  My device can "wakeup" thousands of times a second, what are
> you going to do with that type of information?
>
> > Which framework to use for this?(events, .. ??)
> >
> > One idea I get is to log the info into <debugfs> and poll(implement my
> poll) on
> > it for data. This is my last option.
> >
> > Are there any better ways?
>
> What problem are you trying to solve here?
>
> thanks,
>
> greg k-h
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141008/c06b7009/attachment.html 


More information about the Kernelnewbies mailing list