.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "ACPI_SYSTEM_SAVE_STATE" "" "06 October 2005" "" ""
.SH NAME
acpi_system_save_state \- save OS specific state and power down devices
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
acpi_status acpi_system_save_state (u32 \fIstate\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIstate\fB\fR
sleep state we're entering.
.SH "DESCRIPTION"
.PP
This handles saving all context to memory, and possibly disk.
First, we call to the device driver layer to save device state.
Once we have that, we save whatevery processor and kernel state we
need to memory.
If we're entering S4, we then write the memory image to disk.
.PP
Only then is it safe for us to power down devices, since we may need
the disks and upstream buses to write to.