From ddb16cfc32263b4e47560b8f00ce4a2cfeed140e Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sat, 27 Feb 2010 17:09:28 +0000 Subject: [PATCH] Update comment for vm_page_alloc(9), listing all acceptable flags [1]. Note that the function does not sleep, it can block. Submitted by: Giovanni Trematerra [1] MFC after: 3 days --- sys/vm/vm_page.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index c6bcfa07eb1..665baa9dcf3 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -1020,8 +1020,13 @@ vm_page_cache_transfer(vm_object_t orig_object, vm_pindex_t offidxstart, * VM_ALLOC_SYSTEM system *really* needs a page * VM_ALLOC_INTERRUPT interrupt time request * VM_ALLOC_ZERO zero 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_IFNOTCACHED return NULL, do not reactivate if the page + * is cached * - * This routine may not block. + * This routine may not sleep. */ vm_page_t vm_page_alloc(vm_object_t object, vm_pindex_t pindex, int req)