Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Add a kern.configname sysctl object.



details:   https://anonhg.NetBSD.org/src/rev/69c15797dede
branches:  trunk
changeset: 785294:69c15797dede
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Mar 07 18:02:54 2013 +0000

description:
Add a kern.configname sysctl object.

diffstat:

 sys/kern/init_sysctl.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 40f1c6f4ed7e -r 69c15797dede sys/kern/init_sysctl.c
--- a/sys/kern/init_sysctl.c    Thu Mar 07 10:57:01 2013 +0000
+++ b/sys/kern/init_sysctl.c    Thu Mar 07 18:02:54 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_sysctl.c,v 1.195 2013/02/21 01:39:55 pgoyette Exp $ */
+/*     $NetBSD: init_sysctl.c,v 1.196 2013/03/07 18:02:54 matt Exp $ */
 
 /*-
  * Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.195 2013/02/21 01:39:55 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.196 2013/03/07 18:02:54 matt Exp $");
 
 #include "opt_sysv.h"
 #include "opt_compat_netbsd.h"
@@ -727,6 +727,12 @@
                        SYSCTL_DESCR("Maximal number of semaphores"),
                        NULL, 0, &ksem_max, 0,
                        CTL_CREATE, CTL_EOL);
+       sysctl_createv(clog, 0, NULL, NULL,
+                       CTLFLAG_PERMANENT,
+                       CTLTYPE_STRING, "configname",
+                       SYSCTL_DESCR("Name of config file"),
+                       NULL, 0, __UNCONST(kernel_ident), 0,
+                       CTL_KERN, CTL_CREATE, CTL_EOL);
 }
 
 SYSCTL_SETUP(sysctl_hw_setup, "sysctl hw subtree setup")



Home | Main Index | Thread Index | Old Index