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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 LuckasHead of Software Development
ROAD GmbHBennigsenstr. 14 | 12159 Berlin | Germanyfon: +49 (30) 230069 - 62 | fax: +49 (30) 230069 - 69url: www.road.de
Amtsgericht Charlottenburg: HRB 96688 BManaging director: Hans-Peter Constien_______________________________________________linux-pm mailing listlinux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx://lists.linux-foundation.org/mailman/listinfo/linux-pm


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux