login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
23
Re: [PATCH 2/9] PM: suspend_block: Add driver to access suspend blockers from user-space
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Pavel Machek
Subject:
Re: [PATCH 2/9] PM: suspend_block: Add driver to access suspend blockers from user-space
Date: Friday, April 23, 2010 - 1:43 am
Hi!
quoted text
> Add a misc device, "suspend_blocker", that allows user-space processes > to block auto suspend. The device has ioctls to create a suspend_blocker, > and to block and unblock suspend. To delete the suspend_blocker, close > the device. > > Signed-off-by: Arve Hj??nnev??g <arve@android.com>
quoted text
> --- a/Documentation/power/suspend-blockers.txt > +++ b/Documentation/power/suspend-blockers.txt > @@ -95,3 +95,20 @@ if (list_empty(&state->pending_work)) > else > suspend_block(&state->suspend_blocker); > > +User-space API > +============== > + > +To create a suspend_blocker from user-space, open the suspend_blocker device: > + fd = open("/dev/suspend_blocker", O_RDWR | O_CLOEXEC); > +then call: > + ioctl(fd, SUSPEND_BLOCKER_IOCTL_INIT(strlen(name)), name);
This seems like very wrong idea -- it uses different ioctl number for each length AFAICT. -- (english)
http://www.livejournal.com/~pavelmachek
(cesky, pictures)
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/9] Suspend block api (version 4)
, =?UTF-8?q?Arve=20Hj= ...
, (Thu Apr 22, 6:08 pm)
[PATCH 1/9] PM: Add suspend block api.
, =?UTF-8?q?Arve=20Hj= ...
, (Thu Apr 22, 6:08 pm)
[PATCH 2/9] PM: suspend_block: Add driver to access suspen ...
, =?UTF-8?q?Arve=20Hj= ...
, (Thu Apr 22, 6:08 pm)
[PATCH 3/9] PM: suspend_block: Abort task freezing if a su ...
, =?UTF-8?q?Arve=20Hj= ...
, (Thu Apr 22, 6:08 pm)
[PATCH 4/9] PM: suspend_block: Switch to list of active an ...
, =?UTF-8?q?Arve=20Hj= ...
, (Thu Apr 22, 6:08 pm)
[PATCH 5/9] PM: suspend_block: Add debugfs file
, =?UTF-8?q?Arve=20Hj= ...
, (Thu Apr 22, 6:08 pm)
[PATCH 6/9] PM: suspend_block: Add suspend_blocker stats
, =?UTF-8?q?Arve=20Hj= ...
, (Thu Apr 22, 6:08 pm)
[PATCH 7/9] PM: Add suspend blocking work.
, =?UTF-8?q?Arve=20Hj= ...
, (Thu Apr 22, 6:08 pm)
[PATCH 8/9] Input: Block suspend while event queue is not ...
, =?UTF-8?q?Arve=20Hj= ...
, (Thu Apr 22, 6:08 pm)
[PATCH 9/9] power_supply: Block suspend while power supply ...
, =?UTF-8?q?Arve=20Hj= ...
, (Thu Apr 22, 6:08 pm)
Re: [linux-pm] [PATCH 2/9] PM: suspend_block: Add driver t ...
, Matt Helsley
, (Thu Apr 22, 7:25 pm)
Re: [linux-pm] [PATCH 2/9] PM: suspend_block: Add driver t ...
, Arve Hjønnevåg
, (Thu Apr 22, 8:54 pm)
Re: [linux-pm] [PATCH 2/9] PM: suspend_block: Add driver t ...
, Greg KH
, (Thu Apr 22, 9:38 pm)
Re: [linux-pm] [PATCH 0/9] Suspend block api (version 4)
, Greg KH
, (Thu Apr 22, 9:39 pm)
Re: [PATCH 7/9] PM: Add suspend blocking work.
, Tejun Heo
, (Fri Apr 23, 1:16 am)
Re: [PATCH 2/9] PM: suspend_block: Add driver to access su ...
, Pavel Machek
, (Fri Apr 23, 1:43 am)
Re: [PATCH 7/9] PM: Add suspend blocking work.
, Oleg Nesterov
, (Fri Apr 23, 5:20 am)
Re: [PATCH 8/9] Input: Block suspend while event queue is ...
, Randy Dunlap
, (Fri Apr 23, 1:56 pm)
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
, Randy Dunlap
, (Fri Apr 23, 1:58 pm)
Re: [PATCH 8/9] Input: Block suspend while event queue is ...
, Dmitry Torokhov
, (Fri Apr 23, 2:08 pm)
Re: [PATCH 7/9] PM: Add suspend blocking work.
, Arve Hjønnevåg
, (Fri Apr 23, 3:49 pm)
Re: [PATCH 2/9] PM: suspend_block: Add driver to access su ...
, tytso
, (Fri Apr 23, 6:53 pm)
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
, Arve Hjønnevåg
, (Fri Apr 23, 8:23 pm)
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
, Randy Dunlap
, (Fri Apr 23, 9:24 pm)
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
, Arve Hjønnevåg
, (Fri Apr 23, 9:54 pm)
Re: [PATCH 8/9] Input: Block suspend while event queue is ...
, Arve Hjønnevåg
, (Fri Apr 23, 9:58 pm)
Re: [PATCH 8/9] Input: Block suspend while event queue is ...
, Arve Hjønnevåg
, (Fri Apr 23, 10:02 pm)
Re: [PATCH 7/9] PM: Add suspend blocking work.
, Arve Hjønnevåg
, (Fri Apr 23, 10:21 pm)
Re: [PATCH 2/9] PM: suspend_block: Add driver to access su ...
, Pavel Machek
, (Fri Apr 23, 10:39 pm)
Re: [PATCH 7/9] PM: Add suspend blocking work.
, Tejun Heo
, (Fri Apr 23, 11:33 pm)
Re: [PATCH 7/9] PM: Add suspend blocking work.
, Arve Hjønnevåg
, (Sat Apr 24, 12:21 am)
Re: [PATCH 7/9] PM: Add suspend blocking work.
, Tejun Heo
, (Sat Apr 24, 12:43 am)
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
, Greg KH
, (Sun Apr 25, 11:15 am)
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
, Randy Dunlap
, (Sun Apr 25, 12:53 pm)
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
, tytso
, (Sun Apr 25, 5:00 pm)
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
, Randy Dunlap
, (Sun Apr 25, 5:23 pm)
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
, tytso
, (Sun Apr 25, 5:45 pm)
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
, Randy Dunlap
, (Sun Apr 25, 5:50 pm)
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
, Brian Swetland
, (Sun Apr 25, 11:24 pm)
Re: [PATCH 5/9] PM: suspend_block: Add debugfs file
, Randy Dunlap
, (Mon Apr 26, 6:28 am)
Re: [PATCH 7/9] PM: Add suspend blocking work.
, Oleg Nesterov
, (Mon Apr 26, 7:06 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2
Peter Zijlstra
Re: [RFC PATCH 1/2] Marker probes in futex.c
Stephen Rothwell
linux-next: manual merge of the block tree with the ext4 tree
Ray Lee
Re: Slow DOWN, please!!!
Peter Zijlstra
Re: [patch] generic-ipi: remove kmalloc, cleanup
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Nicolas Pitre
Re: About git and the use of SHA-1
Alex Riesen
Re: git exclude patterns for directory
git-commits-head
:
Linux Kernel Mailing List
sh: Fix compile error by operands(mov.l) in sh3/entry.S
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
Staging: et131x: prune all the debug code
linux-netdev
:
Andi Kleen
Re: RFC: Nagle latency tuning
Russell King
Re: [BUG] New Kernel Bugs
Willy Tarreau
Re: 2.6.25-rc8: FTP transfer errors
Jesper Dangaard Brouer
Re: DDoS attack causing bad effect on conntrack searches
Paul Gortmaker
[PATCH net-next 09/16] tipc: Relocate trivial link status functions to header file
openbsd-misc
:
Andres Salazar
About priorities in /etc/resolv.conf
Rob Shepherd
x86 hardware for router system
Damien Miller
Re: Patching a SSH 'Weakness'
P. Souza
Re: RouterBOARD RB600A support
Marco Fretz
Re: Hardware recommendation for firewalls (more than 4 NICs)
Colocation donated by:
Syndicate