git: 34935a6b3723 - main - vm_object: reformat flags definitions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Oct 2024 08:24:59 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=34935a6b3723422ef27ce4eb80fbe52c3dab12fc
commit 34935a6b3723422ef27ce4eb80fbe52c3dab12fc
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-10-06 20:54:30 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-10-07 08:22:12 +0000
vm_object: reformat flags definitions
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D46959
---
sys/vm/vm_object.h | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 71a1c33c7f26..3eaab1282fa6 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -182,23 +182,25 @@ struct vm_object {
/*
* Flags
*/
-#define OBJ_FICTITIOUS 0x0001 /* (c) contains fictitious pages */
-#define OBJ_UNMANAGED 0x0002 /* (c) contains unmanaged pages */
-#define OBJ_POPULATE 0x0004 /* pager implements populate() */
-#define OBJ_DEAD 0x0008 /* dead objects (during rundown) */
-#define OBJ_ANON 0x0010 /* (c) contains anonymous memory */
-#define OBJ_UMTXDEAD 0x0020 /* umtx pshared was terminated */
-#define OBJ_SIZEVNLOCK 0x0040 /* lock vnode to check obj size */
-#define OBJ_PG_DTOR 0x0080 /* dont reset object, leave that for dtor */
-#define OBJ_SHADOWLIST 0x0100 /* Object is on the shadow list. */
-#define OBJ_SWAP 0x0200 /* object swaps, type will be OBJT_SWAP
+#define OBJ_FICTITIOUS 0x00000001 /* (c) contains fictitious pages */
+#define OBJ_UNMANAGED 0x00000002 /* (c) contains unmanaged pages */
+#define OBJ_POPULATE 0x00000004 /* pager implements populate() */
+#define OBJ_DEAD 0x00000008 /* dead objects (during rundown) */
+#define OBJ_ANON 0x00000010 /* (c) contains anonymous memory */
+#define OBJ_UMTXDEAD 0x00000020 /* umtx pshared was terminated */
+#define OBJ_SIZEVNLOCK 0x00000040 /* lock vnode to check obj size */
+#define OBJ_PG_DTOR 0x00000080 /* do not reset object, leave that
+ for dtor */
+#define OBJ_SHADOWLIST 0x00000100 /* Object is on the shadow list. */
+#define OBJ_SWAP 0x00000200 /* object swaps, type will be OBJT_SWAP
or dynamically registered */
-#define OBJ_SPLIT 0x0400 /* object is being split */
-#define OBJ_COLLAPSING 0x0800 /* Parent of collapse. */
-#define OBJ_COLORED 0x1000 /* pg_color is defined */
-#define OBJ_ONEMAPPING 0x2000 /* One USE (a single, non-forked) mapping flag */
-#define OBJ_PAGERPRIV1 0x4000 /* Pager private */
-#define OBJ_PAGERPRIV2 0x8000 /* Pager private */
+#define OBJ_SPLIT 0x00000400 /* object is being split */
+#define OBJ_COLLAPSING 0x00000800 /* Parent of collapse. */
+#define OBJ_COLORED 0x00001000 /* pg_color is defined */
+#define OBJ_ONEMAPPING 0x00002000 /* One USE (a single, non-forked)
+ mapping flag */
+#define OBJ_PAGERPRIV1 0x00004000 /* Pager private */
+#define OBJ_PAGERPRIV2 0x00008000 /* Pager private */
/*
* Helpers to perform conversion between vm_object page indexes and offsets.