On Wed, May 26, 2010 at 2:33 AM, Peter Zijlstra <peterz@infradead.org> wrote:
If you are talking about user-space code here, then that does not
work. Not all kernel events that need to block suspend make it to
user-space.
I'm not sure what you are proposing that we use instead. Both
user-space and kernel code needs to block suspend. If we don't have
suspend blockers in the kernel then user-space needs to poll when a
driver blocks suspend by returning an error from its suspend hook.
--
Arve Hjønnevåg
--