Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys move CTL_VM constants to uvm_param.h, leaving a comment ...



details:   https://anonhg.NetBSD.org/src/rev/bfa57d999fa9
branches:  trunk
changeset: 810874:bfa57d999fa9
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 26 20:28:37 2015 +0000

description:
move CTL_VM constants to uvm_param.h, leaving a comment behind.

diffstat:

 sys/sys/sysctl.h    |  6 ++----
 sys/uvm/uvm_param.h |  8 ++++++--
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (51 lines):

diff -r aae2cb96ad6f -r bfa57d999fa9 sys/sys/sysctl.h
--- a/sys/sys/sysctl.h  Sat Sep 26 16:33:16 2015 +0000
+++ b/sys/sys/sysctl.h  Sat Sep 26 20:28:37 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.h,v 1.216 2015/09/24 14:32:15 christos Exp $    */
+/*     $NetBSD: sysctl.h,v 1.217 2015/09/26 20:28:37 christos Exp $    */
 
 /*
  * Copyright (c) 1989, 1993
@@ -829,10 +829,8 @@
 #define        KERN_EVCNT_COUNT_NONZERO        1
 
 /*
- * CTL_VM identifiers
+ * CTL_VM identifiers in <uvm/uvm_param.h>
  */
-#define VM_PROC                1               /* internal */
-#define VM_PROC_MAP    1               /* struct kinfo_vmentry */
 
 /*
  * The vm.proc.map sysctl allows a process to dump the VM layout of
diff -r aae2cb96ad6f -r bfa57d999fa9 sys/uvm/uvm_param.h
--- a/sys/uvm/uvm_param.h       Sat Sep 26 16:33:16 2015 +0000
+++ b/sys/uvm/uvm_param.h       Sat Sep 26 20:28:37 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_param.h,v 1.34 2014/02/26 16:11:59 matt Exp $      */
+/*     $NetBSD: uvm_param.h,v 1.35 2015/09/26 20:28:38 christos Exp $  */
 
 /*
  * Copyright (c) 1991, 1993
@@ -177,8 +177,11 @@
 #define        VM_FILEMAX      13
 #define        VM_MINADDRESS   14
 #define        VM_MAXADDRESS   15
+#define        VM_PROC         16              /* process information */
 
-#define        VM_MAXID        16              /* number of valid vm ids */
+#define        VM_MAXID        17              /* number of valid vm ids */
+
+#define VM_PROC_MAP    1               /* struct kinfo_vmentry */
 
 #define        CTL_VM_NAMES { \
        { 0, 0 }, \
@@ -197,6 +200,7 @@
        { "filemax", CTLTYPE_INT }, \
        { "minaddress", CTLTYPE_LONG }, \
        { "maxaddress", CTLTYPE_LONG }, \
+       { "proc", CTLTYPE_STRUCT }, \
 }
 
 #ifndef ASSEMBLER



Home | Main Index | Thread Index | Old Index