Re: [linux-pm] [PATCH 8/9] Input: Block suspend while event queue is not empty.

Previous thread: [PATCH V3] i2c-algo-pca: fix coding style issues in i2c-algo-pca.c by Farid Hammane on Saturday, April 24, 2010 - 7:34 am. (2 messages)

Next thread: Re: [linux-pm] [PATCH 2/9] PM: suspend_block: Add driver to access suspend blockers from user-space by Alan Stern on Saturday, April 24, 2010 - 7:44 am. (2 messages)
From: Alan Stern
Date: Saturday, April 24, 2010 - 7:36 am

Is there some reason why this feature needs to be enabled by an 
ioctl?  Why not make this suspend blocker permanently enabled?

Alan Stern

--

From: Rafael J. Wysocki
Date: Saturday, April 24, 2010 - 7:30 pm

The ioctl is there so that user space can use suspend blockers, which is
needed because only user space know that some activities are going to continue
and therefore the system should not be suspended (like playing music "in the
background").

From all of the interfaces that could be used for this purpose ioctl appears to
be the most convenient (we need something that is per process and allows us
to carry out four operations: creat, destroy, activate, deactivate).

Rafael
--

Previous thread: [PATCH V3] i2c-algo-pca: fix coding style issues in i2c-algo-pca.c by Farid Hammane on Saturday, April 24, 2010 - 7:34 am. (2 messages)

Next thread: Re: [linux-pm] [PATCH 2/9] PM: suspend_block: Add driver to access suspend blockers from user-space by Alan Stern on Saturday, April 24, 2010 - 7:44 am. (2 messages)