Re: [PATCH 06/11] PM: Add user-space wake lock api.

Uli Luckas
2009-01-30T12:43:08Z

On Wednesday, 14. January 2009, Arve Hjønnevåg wrote:
> This adds /sys/power/wake_lock and /sys/power/wake_unlock.
> Writing a string to wake_lock creates a wake lock the
> first time is sees a string and locks it. Optionally, the
> string can be followed by a timeout.
> To unlock the wake lock, write the same string to wake_unlock.
What happens if a process takes a lock and then dies?
Instead of using sysfs, how about using a device for this purpose which the
caller has to keep open as long as they want to hold the lock.

Uli

--

------- ROAD ...the handyPC Company - - - ) ) )

Uli Luckas
Head of Software Development

ROAD GmbH
Bennigsenstr. 14 | 12159 Berlin | Germany
fon: +49 (30) 230069 - 62 | fax: +49 (30) 230069 - 69
url: www.road.de

Amtsgericht Charlottenburg: HRB 96688 B
Managing director: Hans-Peter Constien
_______________________________________________
linux-pm mailing list
linux-pm@lists.linux-foundation.org