Source-Changes-HG archive

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

[src/trunk]: src/sys/kern use opt_kmem.h for the KMEM_ variables.



details:   https://anonhg.NetBSD.org/src/rev/96d771fad03d
branches:  trunk
changeset: 823106:96d771fad03d
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 12 20:05:54 2017 +0000

description:
use opt_kmem.h for the KMEM_ variables.

diffstat:

 sys/kern/files.kern  |  7 ++++++-
 sys/kern/subr_kmem.c |  8 ++++++--
 2 files changed, 12 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r 44f0f1242c46 -r 96d771fad03d sys/kern/files.kern
--- a/sys/kern/files.kern       Wed Apr 12 18:17:59 2017 +0000
+++ b/sys/kern/files.kern       Wed Apr 12 20:05:54 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.kern,v 1.13 2016/11/02 00:11:59 pgoyette Exp $
+#      $NetBSD: files.kern,v 1.14 2017/04/12 20:05:54 christos Exp $
 
 #
 # kernel sources
@@ -113,6 +113,11 @@
 file   kern/subr_iostat.c              kern
 file   kern/subr_ipi.c                 kern
 file   kern/subr_kcpuset.c             kern
+defflag        opt_kmem.h                      KMEM_GUARD
+                                       KMEM_POISON
+                                       KMEM_REDZONE
+                                       KMEM_SIZE
+defparam opt_kmem.h                    KMEM_GUARD_DEPTH
 file   kern/subr_kmem.c                kern
 file   kern/subr_kobj.c                kern
 file   kern/subr_kobj_vfs.c            kern
diff -r 44f0f1242c46 -r 96d771fad03d sys/kern/subr_kmem.c
--- a/sys/kern/subr_kmem.c      Wed Apr 12 18:17:59 2017 +0000
+++ b/sys/kern/subr_kmem.c      Wed Apr 12 20:05:54 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_kmem.c,v 1.62 2016/02/29 00:34:17 chs Exp $       */
+/*     $NetBSD: subr_kmem.c,v 1.63 2017/04/12 20:05:54 christos Exp $  */
 
 /*-
  * Copyright (c) 2009-2015 The NetBSD Foundation, Inc.
@@ -100,7 +100,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_kmem.c,v 1.62 2016/02/29 00:34:17 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_kmem.c,v 1.63 2017/04/12 20:05:54 christos Exp $");
+
+#ifdef _KERNEL_OPT
+#include "opt_kmem.h"
+#endif
 
 #include <sys/param.h>
 #include <sys/callback.h>



Home | Main Index | Thread Index | Old Index