login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
29
Re: [PATCH 2/8] 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: Rafael J. Wysocki
Subject:
Re: [PATCH 2/8] PM: suspend_block: Add driver to access suspend blockers from user-space
Date: Thursday, April 29, 2010 - 2:11 pm
On Thursday 29 April 2010, Arve Hjønnevåg wrote:
quoted text
> 2010/4/28 Rafael J. Wysocki <rjw@sisk.pl>: > > On Thursday 29 April 2010, Arve Hjønnevåg wrote: > >> 2010/4/28 Rafael J. Wysocki <rjw@sisk.pl>: > >> > On Wednesday 28 April 2010, Arve Hjønnevåg wrote: > >> >> 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> > >> > ... > >> >> + > >> >> +#include <linux/fs.h> > >> >> +#include <linux/miscdevice.h> > >> >> +#include <linux/module.h> > >> >> +#include <linux/uaccess.h> > >> >> +#include <linux/slab.h> > >> >> +#include <linux/suspend_blocker.h> > >> >> +#include <linux/suspend_block_dev.h> > >> >> + > >> >> +enum { > >> >> + DEBUG_FAILURE = BIT(0), > >> >> +}; > >> >> +static int debug_mask = DEBUG_FAILURE; > >> > > >> > What's the exact purpose of this? > >> > >> To show errors returned to user space. I can turn it off by default if you want. > > > > Not necessarily, but why is it a mask? It looks like a 0/1 thing would be > > sufficient. > > I may want to add a bit to print all user-space block and unblock calls.
Alternatively, you can add a new parameter for that, which I think I would prefer. Rafael --
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 5)
, =?UTF-8?q?Arve=20Hj= ...
, (Tue Apr 27, 9:31 pm)
[PATCH 1/8] PM: Add suspend block api.
, =?UTF-8?q?Arve=20Hj= ...
, (Tue Apr 27, 9:31 pm)
[PATCH 2/8] PM: suspend_block: Add driver to access suspen ...
, =?UTF-8?q?Arve=20Hj= ...
, (Tue Apr 27, 9:31 pm)
[PATCH 3/8] PM: suspend_block: Abort task freezing if a su ...
, =?UTF-8?q?Arve=20Hj= ...
, (Tue Apr 27, 9:31 pm)
[PATCH 4/8] PM: suspend_block: Add debugfs file
, =?UTF-8?q?Arve=20Hj= ...
, (Tue Apr 27, 9:31 pm)
[PATCH 5/8] PM: suspend_block: Add suspend_blocker stats
, =?UTF-8?q?Arve=20Hj= ...
, (Tue Apr 27, 9:31 pm)
[PATCH 6/8] PM: Add suspend blocking work.
, =?UTF-8?q?Arve=20Hj= ...
, (Tue Apr 27, 9:31 pm)
[PATCH 7/8] Input: Block suspend while event queue is not ...
, =?UTF-8?q?Arve=20Hj= ...
, (Tue Apr 27, 9:31 pm)
[PATCH 8/8] power_supply: Block suspend while power supply ...
, =?UTF-8?q?Arve=20Hj= ...
, (Tue Apr 27, 9:31 pm)
Re: [PATCH 3/8] PM: suspend_block: Abort task freezing if ...
, Pavel Machek
, (Tue Apr 27, 10:07 pm)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Pavel Machek
, (Tue Apr 27, 11:06 pm)
Re: [PATCH 1/8] PM: Add suspend block api.
, Pavel Machek
, (Tue Apr 27, 11:07 pm)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Tejun Heo
, (Tue Apr 27, 11:44 pm)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Arve Hjønnevåg
, (Wed Apr 28, 12:02 am)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Tejun Heo
, (Wed Apr 28, 12:18 am)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Oleg Nesterov
, (Wed Apr 28, 12:40 pm)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Tejun Heo
, (Wed Apr 28, 1:22 pm)
Re: [PATCH 1/8] PM: Add suspend block api.
, Rafael J. Wysocki
, (Wed Apr 28, 1:50 pm)
Re: [PATCH 2/8] PM: suspend_block: Add driver to access su ...
, Rafael J. Wysocki
, (Wed Apr 28, 1:58 pm)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Rafael J. Wysocki
, (Wed Apr 28, 2:08 pm)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Rafael J. Wysocki
, (Wed Apr 28, 2:09 pm)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Arve Hjønnevåg
, (Wed Apr 28, 3:09 pm)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Rafael J. Wysocki
, (Wed Apr 28, 3:19 pm)
Re: [PATCH 2/8] PM: suspend_block: Add driver to access su ...
, Arve Hjønnevåg
, (Wed Apr 28, 3:31 pm)
Re: [PATCH 2/8] PM: suspend_block: Add driver to access su ...
, Rafael J. Wysocki
, (Wed Apr 28, 4:05 pm)
Re: [PATCH 2/8] PM: suspend_block: Add driver to access su ...
, Arve Hjønnevåg
, (Wed Apr 28, 4:38 pm)
Re: [PATCH 1/8] PM: Add suspend block api.
, Arve Hjønnevåg
, (Wed Apr 28, 8:37 pm)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Arve Hjønnevåg
, (Wed Apr 28, 8:47 pm)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Oleg Nesterov
, (Thu Apr 29, 11:58 am)
[PATCH 0/2] workqueue fixlets (Was: PM: Add suspend blocki ...
, Oleg Nesterov
, (Thu Apr 29, 12:44 pm)
[PATCH 1/2] workqueues: flush_delayed_work: keep the origi ...
, Oleg Nesterov
, (Thu Apr 29, 12:45 pm)
[PATCH 2/2] workqueues: export keventd_wq
, Oleg Nesterov
, (Thu Apr 29, 12:45 pm)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Rafael J. Wysocki
, (Thu Apr 29, 2:08 pm)
Re: [PATCH 6/8] PM: Add suspend blocking work.
, Rafael J. Wysocki
, (Thu Apr 29, 2:09 pm)
Re: [PATCH 2/8] PM: suspend_block: Add driver to access su ...
, Rafael J. Wysocki
, (Thu Apr 29, 2:11 pm)
Re: [PATCH 1/8] PM: Add suspend block api.
, Rafael J. Wysocki
, (Thu Apr 29, 2:16 pm)
Re: [PATCH 2/8] PM: suspend_block: Add driver to access su ...
, Arve Hjønnevåg
, (Thu Apr 29, 4:41 pm)
Re: [PATCH 1/8] PM: Add suspend block api.
, Tejun Heo
, (Thu Apr 29, 9:24 pm)
Re: [PATCH 1/2] workqueues: flush_delayed_work: keep the o ...
, Tejun Heo
, (Thu Apr 29, 10:15 pm)
Re: [PATCH 2/2] workqueues: export keventd_wq
, Tejun Heo
, (Thu Apr 29, 10:16 pm)
Re: [PATCH 2/2] workqueues: export keventd_wq
, Arve Hjønnevåg
, (Thu Apr 29, 10:39 pm)
Re: [PATCH 2/2] workqueues: export keventd_wq
, Tejun Heo
, (Thu Apr 29, 10:52 pm)
Re: [PATCH 1/8] PM: Add suspend block api.
, Oleg Nesterov
, (Fri Apr 30, 10:26 am)
Re: [PATCH 2/2] workqueues: export keventd_wq
, Oleg Nesterov
, (Fri Apr 30, 11:05 am)
Re: [PATCH 2/2] workqueues: export keventd_wq
, Tejun Heo
, (Fri Apr 30, 11:11 am)
Re: [PATCH 1/8] PM: Add suspend block api.
, Tejun Heo
, (Thu May 20, 1:30 am)
Re: [PATCH 1/8] PM: Add suspend block api.
, Rafael J. Wysocki
, (Thu May 20, 3:27 pm)
Re: [PATCH 1/8] PM: Add suspend block api.
, Tejun Heo
, (Thu May 20, 11:35 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Bill Fink
Re: [PATCH] net: add ability to clear stats via ethtool - e1000/pcnet32
Jeffrey V. Merkey
Re: Versioning file system
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
PCI hotplug: acpiphp: remove superfluous _HPP/_HPX evaluation
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Jack J. Woehr
Re: Real men don't attack straw men
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Tony Abernethy
Re: The Atheros story in much fewer words
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Shawn O. Pearce
Re: Bugs in Gitosis
Alex Riesen
Re: git exclude patterns for directory
David Kastrup
Re: I'm a total push-over..
Colocation donated by:
Syndicate