Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Also report attachment of pseudo-devices to userland.
details: https://anonhg.NetBSD.org/src/rev/48aca8d5d9d4
branches: trunk
changeset: 783840:48aca8d5d9d4
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Thu Jan 10 10:15:59 2013 +0000
description:
Also report attachment of pseudo-devices to userland.
diffstat:
sys/kern/subr_autoconf.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 72619030291e -r 48aca8d5d9d4 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c Thu Jan 10 09:02:53 2013 +0000
+++ b/sys/kern/subr_autoconf.c Thu Jan 10 10:15:59 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.224 2012/10/27 17:18:39 chs Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.225 2013/01/10 10:15:59 mlelstv Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.224 2012/10/27 17:18:39 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.225 2013/01/10 10:15:59 mlelstv Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -1585,7 +1585,12 @@
#if 0 /* XXXJRT not yet */
device_register(dev, NULL); /* like a root node */
#endif
+
+ /* Let userland know */
+ devmon_report_device(dev, true);
+
(*dev->dv_cfattach->ca_attach)(ROOT, dev, NULL);
+
config_process_deferred(&deferred_config_queue, dev);
return dev;
}
Home |
Main Index |
Thread Index |
Old Index