Module Name:    src
Committed By:   pooka
Date:           Mon Nov 30 11:28:35 UTC 2009

Modified Files:
        src/sys/kern: subr_iostat.c

Log Message:
Create CTL_HW before creating nodes on top of it (sysctl constructors
run in "random" order).


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/kern/subr_iostat.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/subr_iostat.c
diff -u src/sys/kern/subr_iostat.c:1.18 src/sys/kern/subr_iostat.c:1.19
--- src/sys/kern/subr_iostat.c:1.18	Wed Sep 16 15:23:04 2009
+++ src/sys/kern/subr_iostat.c	Mon Nov 30 11:28:35 2009
@@ -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,

Reply via email to