Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Provide unwind log for bufq sysctls, since (theoret...



details:   https://anonhg.NetBSD.org/src/rev/517427236088
branches:  trunk
changeset: 747484:517427236088
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Sep 17 09:54:27 2009 +0000

description:
Provide unwind log for bufq sysctls, since (theoretically) bufq might
not be initialized during kernel bootstrap and therefore "permanent"
nodes can be created only with an unwind log.

diffstat:

 sys/kern/subr_bufq.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r b6d786a6b2a4 -r 517427236088 sys/kern/subr_bufq.c
--- a/sys/kern/subr_bufq.c      Thu Sep 17 08:55:19 2009 +0000
+++ b/sys/kern/subr_bufq.c      Thu Sep 17 09:54:27 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_bufq.c,v 1.19 2009/09/16 15:23:04 pooka Exp $     */
+/*     $NetBSD: subr_bufq.c,v 1.20 2009/09/17 09:54:27 pooka Exp $     */
 /*     NetBSD: subr_disk.c,v 1.70 2005/08/20 12:00:01 yamt Exp $       */
 
 /*-
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_bufq.c,v 1.19 2009/09/16 15:23:04 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_bufq.c,v 1.20 2009/09/17 09:54:27 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -86,11 +86,12 @@
 static int bufq_init(void);
 static void sysctl_kern_bufq_strategies_setup(struct sysctllog **);
 
+static struct sysctllog *sysctllog;
 static int
 bufq_init(void)
 {
 
-       sysctl_kern_bufq_strategies_setup(NULL);
+       sysctl_kern_bufq_strategies_setup(&sysctllog);
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index