Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/opencrypto When using modular opencrypto, make sure the ...
details: https://anonhg.NetBSD.org/src/rev/b6c68df601a0
branches: trunk
changeset: 325957:b6c68df601a0
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Mon Jan 13 21:15:36 2014 +0000
description:
When using modular opencrypto, make sure the sysctl variables get
created.
diffstat:
sys/opencrypto/crypto.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r a3ec55d13c52 -r b6c68df601a0 sys/opencrypto/crypto.c
--- a/sys/opencrypto/crypto.c Mon Jan 13 20:00:20 2014 +0000
+++ b/sys/opencrypto/crypto.c Mon Jan 13 21:15:36 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crypto.c,v 1.42 2014/01/01 16:06:01 pgoyette Exp $ */
+/* $NetBSD: crypto.c,v 1.43 2014/01/13 21:15:36 pgoyette Exp $ */
/* $FreeBSD: src/sys/opencrypto/crypto.c,v 1.4.2.5 2003/02/26 00:14:05 sam Exp $ */
/* $OpenBSD: crypto.c,v 1.41 2002/07/17 23:52:38 art Exp $ */
@@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.42 2014/01/01 16:06:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.43 2014/01/13 21:15:36 pgoyette Exp $");
#include <sys/param.h>
#include <sys/reboot.h>
@@ -1342,11 +1342,20 @@
static int
opencrypto_modcmd(modcmd_t cmd, void *opaque)
{
+#ifdef _MODULE
+ static struct sysctllog *sysctl_opencrypto_clog;
+#endif
switch (cmd) {
case MODULE_CMD_INIT:
+#ifdef _MODULE
+ sysctl_opencrypto_setup(&sysctl_opencrypto_clog);
+#endif
return 0;
case MODULE_CMD_FINI:
+#ifdef _MODULE
+ sysctl_teardown(&sysctl_opencrypto_clog);
+#endif
return 0;
default:
return ENOTTY;
Home |
Main Index |
Thread Index |
Old Index