.\" 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 "PMDISK_SUSPEND" "" "06 October 2005" "" ""
.SH NAME
pmdisk_suspend \- Atomically snapshot the system.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int pmdisk_suspend ( \fIvoid\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIvoid\fB\fR
no arguments
.SH "DESCRIPTION"
.PP
.PP
This must be called with interrupts disabled, to prevent the
system changing at all from underneath us.
.PP
To do this, we count the number of pages in the system that we
need to save; make sure we have enough memory and swap to clone
the pages and save them in swap, allocate the space to hold them,
and then snapshot them all.