Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern hw nodes do not go under the kern tree, so add new ...
details: https://anonhg.NetBSD.org/src/rev/b0d46ed9e33f
branches: trunk
changeset: 340182:b0d46ed9e33f
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Aug 25 14:32:34 2015 +0000
description:
hw nodes do not go under the kern tree, so add new init routine for them
diffstat:
sys/kern/init_sysctl_base.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r f34f83ef833b -r b0d46ed9e33f sys/kern/init_sysctl_base.c
--- a/sys/kern/init_sysctl_base.c Tue Aug 25 13:50:19 2015 +0000
+++ b/sys/kern/init_sysctl_base.c Tue Aug 25 14:32:34 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init_sysctl_base.c,v 1.5 2015/07/07 13:07:10 justin Exp $ */
+/* $NetBSD: init_sysctl_base.c,v 1.6 2015/08/25 14:32:34 pooka 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_base.c,v 1.5 2015/07/07 13:07:10 justin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl_base.c,v 1.6 2015/08/25 14:32:34 pooka Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -181,6 +181,11 @@
SYSCTL_DESCR("Raw partition of a disk"),
NULL, RAW_PART, NULL, 0,
CTL_KERN, KERN_RAWPARTITION, CTL_EOL);
+}
+
+SYSCTL_SETUP(sysctl_hwbase_setup, "sysctl hw subtree base setup")
+{
+
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT,
CTLTYPE_STRING, "machine",
Home |
Main Index |
Thread Index |
Old Index