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

Jinqiang Zeng jinqiangzeng at gmail.com
Wed Oct 8 14:30:37 EDT 2014


2014-10-08 0:39 GMT-07:00 manty kuma <mantykuma at gmail.com>:
> Hi,
> I want a user process to be notified on device wakeup so that I can print
> some related information.
>
> Which framework to use for this?(events, .. ??)

You can use netlink and  uevent to do this job.

But  just as Greg has pointed out, if your device notify  frequently,
your system will get slow down obviously.

>
> 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?
>
> Best Regards,
> Manty
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



More information about the Kernelnewbies mailing list