summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.h
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-11-01 00:59:03 +0000
committerjeff <jeff@FreeBSD.org>2002-11-01 00:59:03 +0000
commit827f7f802d6c9bb6e26502be3f21dc7aa7ce254e (patch)
tree309c689442dae3738f39ce26b69429d30a1f9ec1 /sys/vm/vm_page.h
parentc46715077793ed90d5eaf4f4ce3ebd59fe491d56 (diff)
downloadFreeBSD-src-827f7f802d6c9bb6e26502be3f21dc7aa7ce254e.zip
FreeBSD-src-827f7f802d6c9bb6e26502be3f21dc7aa7ce254e.tar.gz
- Add a new flag to vm_page_alloc, VM_ALLOC_NOOBJ. This tells
vm_page_alloc not to insert this page into an object. The pindex is still used for colorization. - Rework vm_page_select_* to accept a color instead of an object and pindex to work with VM_PAGE_NOOBJ. - Document other VM_ALLOC_ flags. Reviewed by: peter, jake
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r--sys/vm/vm_page.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index 834d01e..b5bf5e9 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -314,9 +314,10 @@ extern struct mtx vm_page_queue_mtx;
#define VM_ALLOC_SYSTEM 2
#define VM_ALLOC_CLASS_MASK 3
/* page allocation flags: */
-#define VM_ALLOC_WIRED 0x20
-#define VM_ALLOC_ZERO 0x40
-#define VM_ALLOC_RETRY 0x80 /* vm_page_grab() only */
+#define VM_ALLOC_WIRED 0x0020 /* non pageable */
+#define VM_ALLOC_ZERO 0x0040 /* Try to obtain a zeroed page */
+#define VM_ALLOC_RETRY 0x0080 /* vm_page_grab() only */
+#define VM_ALLOC_NOOBJ 0x0100 /* No associated object */
void vm_page_flag_set(vm_page_t m, unsigned short bits);
void vm_page_flag_clear(vm_page_t m, unsigned short bits);
OpenPOWER on IntegriCloud