[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:40 UTC 2012


details:   http://zrouter.org/hg/FreeBSD/head//rev/8ea892da3ee5
changeset: 441:8ea892da3ee5
user:      Aleksandr Rybalko <ray at ddteam.net>
date:      Tue Mar 20 01:11:44 2012 +0200
description:
Define device_attached and device_detached events.

diffstat:

 head/sys/sys/eventhandler.h |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r 35fe924d49eb -r 8ea892da3ee5 head/sys/sys/eventhandler.h
--- a/head/sys/sys/eventhandler.h	Tue Mar 20 01:09:25 2012 +0200
+++ b/head/sys/sys/eventhandler.h	Tue Mar 20 01:11:44 2012 +0200
@@ -33,6 +33,7 @@
 #include <sys/ktr.h>
 #include <sys/mutex.h>
 #include <sys/queue.h>
+#include <sys/types.h>
 
 struct eventhandler_entry {
 	TAILQ_ENTRY(eventhandler_entry)	ee_link;
@@ -255,4 +256,8 @@
 EVENTHANDLER_DECLARE(nmbclusters_change, uma_zone_chfn);
 EVENTHANDLER_DECLARE(maxsockets_change, uma_zone_chfn);
 
+typedef void (*device_xxtached_fn)(device_t, device_t);
+EVENTHANDLER_DECLARE(device_attached, device_xxtached_fn);
+EVENTHANDLER_DECLARE(device_detached, device_xxtached_fn);
+
 #endif /* SYS_EVENTHANDLER_H */


More information about the Zrouter-src-freebsd mailing list