<p dir="ltr">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.</p>
<p dir="ltr">Sent from my Android phone with Gmail. Please excuse my brevity.</p>
<div class="gmail_quote">On 08-Oct-2014 7:03 pm, "Greg KH" <<a href="mailto:greg@kroah.com">greg@kroah.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Oct 08, 2014 at 04:39:17PM +0900, manty kuma wrote:<br>
> Hi,<br>
> I want a user process to be notified on device wakeup so that I can print some<br>
> related information.<br>
<br>
Really? My device can "wakeup" thousands of times a second, what are<br>
you going to do with that type of information?<br>
<br>
> Which framework to use for this?(events, .. ??)<br>
><br>
> One idea I get is to log the info into <debugfs> and poll(implement my poll) on<br>
> it for data. This is my last option.<br>
><br>
> Are there any better ways?<br>
<br>
What problem are you trying to solve here?<br>
<br>
thanks,<br>
<br>
greg k-h<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div>