.\" 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 "ADD_TO_SWAP" "9" "09 October 2005" "" ""
.SH NAME
add_to_swap \- allocate swap space for a page
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int add_to_swap (struct page * \fIpage\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIpage\fB\fR
page we want to move to swap
.SH "DESCRIPTION"
.PP
Allocate swap space for the page and add the page to the
swap cache. Caller needs to hold the page lock.