RE: what is the difference between shutdown command and writing to /sys/power/state

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Agarwal, Lomesh
Date: Thursday, September 20, 2007 - 11:11 am

Can someone tell me the flow of code for these two scenarios -
I write disk to /sys/power/state. How does system go to hibernation? How
does this trigger ACPI driver functions?
I issue shutdown command.
I am using 2.6.18 kernel.

Thanks,
Lomesh

-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Rafael J.
Wysocki
Sent: Wednesday, September 19, 2007 5:09 PM
To: Agarwal, Lomesh
Cc: linux-kernel@vger.kernel.org
Subject: Re: what is the difference between shutdown command and writing
to /sys/power/state

On Wednesday, 19 September 2007 23:37, Agarwal, Lomesh wrote:

Please tell me what kernel version you're referring to.


Sorry, I have misunderstood your post (the "now" doesn't look as a part
of the
command).

Greetings,
Rafael


writing
-P
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: what is the difference between shutdown command and wr ..., Rafael J. Wysocki, (Wed Sep 19, 2:34 pm)
Re: what is the difference between shutdown command and wr ..., Rafael J. Wysocki, (Wed Sep 19, 5:09 pm)
RE: what is the difference between shutdown command and wr ..., Agarwal, Lomesh, (Thu Sep 20, 11:11 am)
Re: what is the difference between shutdown command and wr ..., Rafael J. Wysocki, (Thu Sep 20, 1:25 pm)