[lkml]   [2010]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [suspend/resume] Re: userspace notification from module
Hi Andy,

2010/1/2 Andy Walls <>:
> Why not:
> a. write a module that implements a device node that supports poll(),
> and
> b. have a user space process select() on the fd for read or exception
> notification
> ?

This is, of course, another possible solution that is more "cleaner"
than the one with the signals.
Then, your userspace program would have another thread polling for the
device node. Question is which timeout would be appropriate to be "CPU
friendly" and to keep notification latency short?


 \ /
  Last update: 2010-01-02 16:59    [W:0.060 / U:3.468 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site