aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_page.h
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2002-11-01 00:59:03 +0000
committerJeff Roberson <jeff@FreeBSD.org>2002-11-01 00:59:03 +0000
commit026aa839a43d539e337c545c70eb1db717770631 (patch)
tree309c689442dae3738f39ce26b69429d30a1f9ec1 /sys/vm/vm_page.h
parent735838d3fe536a733bbae2670b4ba63bdb3acfcc (diff)
downloadsrc-026aa839a43d539e337c545c70eb1db717770631.tar.gz
src-026aa839a43d539e337c545c70eb1db717770631.zip
- 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
Notes
Notes: svn path=/head/; revision=106276
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 834d01e759f7..b5bf5e99e7a4 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);