.\" 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 "FIND_GET_PAGES" "9" "09 October 2005" "" ""
.SH NAME
find_get_pages \- gang pagecache lookup
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
unsigned find_get_pages (struct address_space * \fImapping\fB, pgoff_t \fIstart\fB, unsigned int \fInr_pages\fB, struct page ** \fIpages\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fImapping\fB\fR
The address_space to search
.TP
\fB\fIstart\fB\fR
The starting page index
.TP
\fB\fInr_pages\fB\fR
The maximum number of pages
.TP
\fB\fIpages\fB\fR
Where the resulting pages are placed
.SH "DESCRIPTION"
.PP
\fBfind_get_pages\fR will search for and return a group of up to
\fInr_pages\fR pages in the mapping. The pages are placed at \fIpages\fR\&.
\fBfind_get_pages\fR takes a reference against the returned pages.
.PP
The search returns a group of mapping-contiguous pages with ascending
indexes. There may be holes in the indices due to not-present pages.
.PP
\fBfind_get_pages\fR returns the number of pages which were found.