Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Create CTL_HW before creating nodes on top of it (s...
details: https://anonhg.NetBSD.org/src/rev/7c370cdc527c
branches: trunk
changeset: 749466:7c370cdc527c
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Nov 30 11:28:35 2009 +0000
description:
Create CTL_HW before creating nodes on top of it (sysctl constructors
run in "random" order).
diffstat:
sys/kern/subr_iostat.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 495227809b25 -r 7c370cdc527c sys/kern/subr_iostat.c
--- a/sys/kern/subr_iostat.c Mon Nov 30 11:18:22 2009 +0000
+++ b/sys/kern/subr_iostat.c Mon Nov 30 11:28:35 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_iostat.c,v 1.18 2009/09/16 15:23:04 pooka Exp $ */
+/* $NetBSD: subr_iostat.c,v 1.19 2009/11/30 11:28:35 pooka Exp $ */
/* NetBSD: subr_disk.c,v 1.69 2005/05/29 22:24:15 christos Exp */
/*-
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_iostat.c,v 1.18 2009/09/16 15:23:04 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_iostat.c,v 1.19 2009/11/30 11:28:35 pooka Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -385,6 +385,12 @@
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT,
+ CTLTYPE_NODE, "hw", NULL,
+ NULL, 0, NULL, 0,
+ CTL_HW, CTL_EOL);
+
+ sysctl_createv(clog, 0, NULL, NULL,
+ CTLFLAG_PERMANENT,
CTLTYPE_STRING, "disknames",
SYSCTL_DESCR("List of disk drives present"),
sysctl_hw_disknames, 0, NULL, 0,
Home |
Main Index |
Thread Index |
Old Index