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

From: Rafael J. Wysocki
Date: Thu Sep 20 2007 - 16:13:15 EST


On Thursday, 20 September 2007 20:11, Agarwal, Lomesh wrote:
> 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.

It's quite old for current standards. :-)

I'll need to get the source and look into it to be able to answer, so please
give me some time.

BTW, please don't top post.

Greetings,
Rafael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/