[TuxOnIce-devel] do_check_can_resume
Nigel Cunningham
nigel at tuxonice.net
Sun Sep 18 00:00:41 EDT 2011
Hi.
On 18/09/11 13:33, sabakawa wrote:
> Hi!
>
> I have tried to porting development of the TuxOnIce at other architecture.
> I have a question about do_check_can_resume in process of the work.
>
> Why does it check "1" ?
> Has processing of HIBERNATE given "1"?
It's using the text returned by /sys/power/tuxonice/image_exists:
-1 means we couldn't find a signature and therefore don't know if we can
resume (might change if retried after drivers are loaded and so on)
0 means a signature was found and there's no image to resume
1 means a signature was found and we can resume
Hope that helps!
Nigel
--
Evolution (n): A hypothetical process whereby improbable
events occur with alarming frequency, order arises from chaos, and
no one is given credit.
More information about the TuxOnIce-devel
mailing list