[Zrouter-src-freebsd] ZRouter.org: push to FreeBSD HEAD tree

zrouter-src-freebsd at zrouter.org zrouter-src-freebsd at zrouter.org
Tue Mar 20 10:05:41 UTC 2012


details:   http://zrouter.org/hg/FreeBSD/head//rev/fe0980ed07b1
changeset: 442:fe0980ed07b1
user:      Aleksandr Rybalko <ray at ddteam.net>
date:      Tue Mar 20 01:12:34 2012 +0200
description:
Invoke device_attached and device_detached events on device attach, detach.

diffstat:

 head/sys/kern/subr_bus.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 8ea892da3ee5 -r fe0980ed07b1 head/sys/kern/subr_bus.c
--- a/head/sys/kern/subr_bus.c	Tue Mar 20 01:11:44 2012 +0200
+++ b/head/sys/kern/subr_bus.c	Tue Mar 20 01:12:34 2012 +0200
@@ -806,6 +806,7 @@
 devadded(device_t dev)
 {
 	devaddq("+", device_get_nameunit(dev), dev);
+	EVENTHANDLER_INVOKE(device_attached, dev);
 }
 
 /*
@@ -815,6 +816,7 @@
 static void
 devremoved(device_t dev)
 {
+	EVENTHANDLER_INVOKE(device_detached, dev);
 	devaddq("-", device_get_nameunit(dev), dev);
 }
 


More information about the Zrouter-src-freebsd mailing list