Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/dev/lib/libsysmon Attach component to make it work ...
details: https://anonhg.NetBSD.org/src/rev/367b58ede40a
branches: trunk
changeset: 756809:367b58ede40a
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Aug 03 19:55:17 2010 +0000
description:
Attach component to make it work after defpseudodev conversion
(yea, i need to fix the infrastructure for this).
diffstat:
sys/rump/dev/lib/libsysmon/component.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r df8a8f41c7f0 -r 367b58ede40a sys/rump/dev/lib/libsysmon/component.c
--- a/sys/rump/dev/lib/libsysmon/component.c Tue Aug 03 17:24:45 2010 +0000
+++ b/sys/rump/dev/lib/libsysmon/component.c Tue Aug 03 19:55:17 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: component.c,v 1.2 2010/03/01 13:12:20 pooka Exp $ */
+/* $NetBSD: component.c,v 1.3 2010/08/03 19:55:17 pooka Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.2 2010/03/01 13:12:20 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.3 2010/08/03 19:55:17 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -40,6 +40,8 @@
#include "rump_dev_private.h"
#include "rump_vfs_private.h"
+#include "ioconf.c"
+
void swwdogattach(int);
RUMP_COMPONENT(RUMP_COMPONENT_DEV)
@@ -48,6 +50,12 @@
devmajor_t bmaj, cmaj;
int error;
+ if ((error = config_init_component(cfdriver_ioconf_swwdog,
+ cfattach_ioconf_swwdog, cfdata_ioconf_swwdog)) != 0) {
+ printf("cannot attach sysmon: %d\n", error);
+ return;
+ }
+
bmaj = cmaj = -1;
if ((error = devsw_attach("sysmon", NULL, &bmaj,
&sysmon_cdevsw, &cmaj)) != 0)
Home |
Main Index |
Thread Index |
Old Index