Sync with reality, will help KERN_PROC_VMMAP consumers. Ok?
Index: sys/sysctl.h
===================================================================
RCS file: /cvs/src/sys/sys/sysctl.h,v
retrieving revision 1.196
diff -u -p -r1.196 sysctl.h
--- sys/sysctl.h 22 Oct 2019 21:19:22 -0000 1.196
+++ sys/sysctl.h 5 Dec 2019 17:11:07 -0000
@@ -497,24 +497,33 @@ struct kinfo_vmentry {
u_int8_t kve_flags; /* u_int8_t */
};
+/* keep in sync with UVM_ET_* */
#define KVE_ET_OBJ 0x00000001
#define KVE_ET_SUBMAP 0x00000002
#define KVE_ET_COPYONWRITE 0x00000004
#define KVE_ET_NEEDSCOPY 0x00000008
#define KVE_ET_HOLE 0x00000010
#define KVE_ET_NOFAULT 0x00000020
-#define KVE_ET_FREEMAPPED 0x00000080
+#define KVE_ET_STACK 0x00000040
+#define KVE_ET_WC 0x00000080
+#define KVE_ET_CONCEAL 0x00000100
+#define KVE_ET_SYSCALL 0x00000200
+#define KVE_ET_FREEMAPPED 0x00000800
+
#define KVE_PROT_NONE 0x00000000
#define KVE_PROT_READ 0x00000001
#define KVE_PROT_WRITE 0x00000002
#define KVE_PROT_EXEC 0x00000004
+
#define KVE_ADV_NORMAL 0x00000000
#define KVE_ADV_RANDOM 0x00000001
#define KVE_ADV_SEQUENTIAL 0x00000002
+
#define KVE_INH_SHARE 0x00000000
#define KVE_INH_COPY 0x00000010
#define KVE_INH_NONE 0x00000020
#define KVE_INH_ZERO 0x00000030
+
#define KVE_F_STATIC 0x01
#define KVE_F_KMEM 0x02
Index: uvm/uvm.h
===================================================================
RCS file: /cvs/src/sys/uvm/uvm.h,v
retrieving revision 1.66
diff -u -p -r1.66 uvm.h
--- uvm/uvm.h 29 Nov 2019 06:34:45 -0000 1.66
+++ uvm/uvm.h 5 Dec 2019 17:10:57 -0000
@@ -80,8 +80,9 @@ struct uvm {
/*
* vm_map_entry etype bits:
+ *
+ * keep in sync with KVM_ET_*
*/
-
#define UVM_ET_OBJ 0x0001 /* it is a uvm_object */
#define UVM_ET_SUBMAP 0x0002 /* it is a vm_map submap */
#define UVM_ET_COPYONWRITE 0x0004 /* copy_on_write */