Re: pmf(9) clarifications

2012-04-05 Thread David Young
On Wed, Apr 04, 2012 at 07:25:55AM +0100, Iain Hibbert wrote: Hi Regarding pmf(9) API, is it safe to call pmf_device_deregister() if the device was not successfully registered as a power handler? The documentation does not mention this (though the code looks as if that would work fine), nor

re: pmf(9) clarifications

2012-04-05 Thread matthew green
documentation does not mention this, but it seems that shutting down cleanly might involve a flush of some kind. (I see that pmf_system_suspend() does flush disk caches specifically before the suspend, which sidesteps the issue a little) I think the idea is that by the time

Re: pmf(9) clarifications

2012-04-05 Thread Iain Hibbert
On Thu, 5 Apr 2012, David Young wrote: On Wed, Apr 04, 2012 at 07:25:55AM +0100, Iain Hibbert wrote: Hi Regarding pmf(9) API, is it safe to call pmf_device_deregister() if the device was not successfully registered as a power handler? The documentation does not mention this (though the