.\" 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 "ALLOC_PAGEDIR" "9" "09 October 2005" "" ""
.SH NAME
alloc_pagedir \- Allocate the page directory.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct pbe * alloc_pagedir (unsigned \fInr_pages\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fInr_pages\fB\fR
-- undescribed --
.SH "DESCRIPTION"
.PP
.PP
First, determine exactly how many pages we need and
allocate them.
.SH "WE ARRANGE THE PAGES IN A CHAIN"
.PP
each page is an array of PBES_PER_PAGE
struct pbe elements (pbes) and the last element in the page points
to the next page.
.PP
On each page we set up a list of struct_pbe elements.