aboutsummaryrefslogtreecommitdiff
path: root/sys/vm
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2011-10-27 17:29:19 +0000
committerAlan Cox <alc@FreeBSD.org>2011-10-27 17:29:19 +0000
commit125b695b6e27c5b66383712a3e277974acd2b6ef (patch)
tree53d9ddbc13238dc8d910ea684146ea2d60fe3e08 /sys/vm
parentad033677ea97003328fb2e92dff91f398aac415a (diff)
downloadsrc-125b695b6e27c5b66383712a3e277974acd2b6ef.tar.gz
src-125b695b6e27c5b66383712a3e277974acd2b6ef.zip
Tidy up the comment at the head of vm_page_alloc, and mention that the
returned page has the flag VPO_BUSY set.
Notes
Notes: svn path=/head/; revision=226848
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_page.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index cde138760c0f..8bce0723745c 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -1286,8 +1286,9 @@ vm_page_cache_transfer(vm_object_t orig_object, vm_pindex_t offidxstart,
/*
* vm_page_alloc:
*
- * Allocate and return a memory cell associated
- * with this VM object/offset pair.
+ * Allocate and return a page that is associated with the specified
+ * object and offset pair. By default, this page has the flag VPO_BUSY
+ * set.
*
* The caller must always specify an allocation class.
*
@@ -1297,13 +1298,14 @@ vm_page_cache_transfer(vm_object_t orig_object, vm_pindex_t offidxstart,
* VM_ALLOC_INTERRUPT interrupt time request
*
* optional allocation flags:
- * VM_ALLOC_ZERO prefer a zeroed page
- * VM_ALLOC_WIRED wire the allocated page
- * VM_ALLOC_NOOBJ page is not associated with a vm object
- * VM_ALLOC_NOBUSY do not set the page busy
* VM_ALLOC_IFCACHED return page only if it is cached
* VM_ALLOC_IFNOTCACHED return NULL, do not reactivate if the page
* is cached
+ * VM_ALLOC_NOBUSY do not set the flag VPO_BUSY on the page
+ * VM_ALLOC_NOOBJ page is not associated with an object and
+ * should not have the flag VPO_BUSY set
+ * VM_ALLOC_WIRED wire the allocated page
+ * VM_ALLOC_ZERO prefer a zeroed page
*
* This routine may not sleep.
*/