Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Partial fix - restore creation of our sysctl subtree...
details: https://anonhg.NetBSD.org/src/rev/12fb07cd5d51
branches: trunk
changeset: 346959:12fb07cd5d51
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Mon Aug 08 07:35:12 2016 +0000
description:
Partial fix - restore creation of our sysctl subtree for _MODULE
builds (it's already handled for built-in builds via registration
in a link-set).
XXX The build is still broken in rump...
diffstat:
sys/net/if_tap.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (49 lines):
diff -r f3eb04e84d78 -r 12fb07cd5d51 sys/net/if_tap.c
--- a/sys/net/if_tap.c Mon Aug 08 07:28:54 2016 +0000
+++ b/sys/net/if_tap.c Mon Aug 08 07:35:12 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tap.c,v 1.85 2016/08/07 17:38:34 christos Exp $ */
+/* $NetBSD: if_tap.c,v 1.86 2016/08/08 07:35:12 pgoyette Exp $ */
/*
* Copyright (c) 2003, 2004, 2008, 2009 The NetBSD Foundation.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.85 2016/08/07 17:38:34 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.86 2016/08/08 07:35:12 pgoyette Exp $");
#if defined(_KERNEL_OPT)
@@ -237,6 +237,10 @@
static struct tap_softc * tap_clone_creator(int);
int tap_clone_destroyer(device_t);
+#ifdef _MODULE
+static struct sysctllog *tap_sysctl_clog;
+#endif
+
static u_int tap_count;
void
@@ -253,6 +257,9 @@
tapinit(void)
{
if_clone_attach(&tap_cloners);
+#ifdef _MODULE
+ sysctl_tap_setup(&tap_sysctl_clog);
+#endif
}
static int
@@ -266,6 +273,9 @@
if (error == 0)
if_clone_detach(&tap_cloners);
+#ifdef _MODULE
+ sysctl_teardown(&tap_sysctl_clog);
+#endif
return error;
}
Home |
Main Index |
Thread Index |
Old Index