summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-07-03 18:25:37 +0000
committeralc <alc@FreeBSD.org>2010-07-03 18:25:37 +0000
commit8c92592cd0f900b8317064587c9a03e612c7555d (patch)
treee124cd18b228bb42a1da0240ddddded94e2f80c2 /sys/vm
parent17ff9e909627cc29d8a4b79d22ec3a4d77791d2f (diff)
downloadFreeBSD-src-8c92592cd0f900b8317064587c9a03e612c7555d.zip
FreeBSD-src-8c92592cd0f900b8317064587c9a03e612c7555d.tar.gz
Improve the comment and man page for vm_page_alloc(). Specifically,
document one of the optional flags; clarify which of the flags are optional (and which are not), and remove mention of a restriction on the reclamation of cached pages that no longer holds since version 7. MFC after: 1 week
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_page.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index b1354e9..fc9fdd4 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -1144,14 +1144,19 @@ vm_page_cache_transfer(vm_object_t orig_object, vm_pindex_t offidxstart,
* Allocate and return a memory cell associated
* with this VM object/offset pair.
*
- * page_req classes:
+ * The caller must always specify an allocation class.
+ *
+ * allocation classes:
* VM_ALLOC_NORMAL normal process request
* VM_ALLOC_SYSTEM system *really* needs a page
* VM_ALLOC_INTERRUPT interrupt time request
- * VM_ALLOC_ZERO zero page
+ *
+ * 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
*
OpenPOWER on IntegriCloud