summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authordavidc <davidc@FreeBSD.org>2002-01-09 08:42:43 +0000
committerdavidc <davidc@FreeBSD.org>2002-01-09 08:42:43 +0000
commitff2f125aa58758bad73ad0977bba4c53cddf1b3c (patch)
tree32a6c78b0085a357d3fd5f1cd3f891d90829f584 /share
parent779fa7fcc3bec1a990c92ac8fa589d93ef55a002 (diff)
downloadFreeBSD-src-ff2f125aa58758bad73ad0977bba4c53cddf1b3c.zip
FreeBSD-src-ff2f125aa58758bad73ad0977bba4c53cddf1b3c.tar.gz
Fairly major cleanup of the text.
PR: docs/32241
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/vm_page_alloc.933
1 files changed, 18 insertions, 15 deletions
diff --git a/share/man/man9/vm_page_alloc.9 b/share/man/man9/vm_page_alloc.9
index fd6d2a1..4c39845 100644
--- a/share/man/man9/vm_page_alloc.9
+++ b/share/man/man9/vm_page_alloc.9
@@ -31,7 +31,7 @@
.Os
.Sh NAME
.Nm vm_page_alloc
-.Nd "allocates a page for the object and index"
+.Nd "allocate a page for a vm_object"
.Sh SYNOPSIS
.In sys/param.h
.In vm/vm.h
@@ -41,34 +41,37 @@
.Sh DESCRIPTION
The
.Fn vm_page_alloc
-function allocates a page for
+function allocates a page at
.Fa pindex
-in the VM object
-.Fa object .
-It is assumed that a page has not already been allocated for
-.Fa pindex
-and
+within
.Fa object .
+It is assumed that a page has not already been allocated at
+.Fa pindex .
+The page returned is inserted into the object, but is not inserted
+into the pmap.
.Pp
-The
.Fn vm_page_alloc
-function will not block.
+will not block.
.Pp
Its arguments are:
.Bl -tag -width ".Fa page_req"
.It Fa object
The VM object to allocate the page for.
.It Fa pindex
-The index of the page that should be allocated.
+The index into the object at which the page should be inserted.
.It Fa page_req
A flag indicating how the page should be allocated.
.Bl -tag -width ".Dv VM_ALLOC_INTERRUPT"
.It Dv VM_ALLOC_NORMAL
The page should be allocated with no special treatment.
.It Dv VM_ALLOC_SYSTEM
-The page can be allocated even if the buffer cache queue is empty
-and the free count is above the interrupt reserved water mark.
-This should be used only when the system really needs the page.
+The page can be allocated if the cache queue is empty and the free
+page count is above the interrupt reserved water mark.
+If
+.Dv VM_ALLOC_INTERRUPT
+is set the page can be allocated as long as the free page count is
+greater than zero.
+This flag should be used only when the system really needs the page.
.It Dv VM_ALLOC_INTERRUPT
.Fn vm_page_alloc
is being called during an interrupt and therefore the cache cannot
@@ -82,9 +85,9 @@ except the page returned is zeroed.
.El
.El
.Sh RETURN VALUES
-A
+The
.Vt vm_page_t
-is returned if successful; otherwise,
+that was allocated is returned if successful; otherwise,
.Dv NULL
is returned.
.Sh NOTES
OpenPOWER on IntegriCloud