Module Name: src Committed By: pooka Date: Tue Aug 25 14:32:34 UTC 2015
Modified Files: src/sys/kern: init_sysctl_base.c Log Message: hw nodes do not go under the kern tree, so add new init routine for them To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/kern/init_sysctl_base.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/init_sysctl_base.c diff -u src/sys/kern/init_sysctl_base.c:1.5 src/sys/kern/init_sysctl_base.c:1.6 --- src/sys/kern/init_sysctl_base.c:1.5 Tue Jul 7 13:07:10 2015 +++ src/sys/kern/init_sysctl_base.c Tue Aug 25 14:32:34 2015 @@ -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_SETUP(sysctl_kernbase_setup, "sys 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",