[Midnightbsd-cvs] src [8836] trunk/sys/kern/bus_if.m: notify that child was deleted.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Sep 26 00:02:27 EDT 2016


Revision: 8836
          http://svnweb.midnightbsd.org/src/?rev=8836
Author:   laffer1
Date:     2016-09-26 00:02:26 -0400 (Mon, 26 Sep 2016)
Log Message:
-----------
notify that child was deleted.

Modified Paths:
--------------
    trunk/sys/kern/bus_if.m

Modified: trunk/sys/kern/bus_if.m
===================================================================
--- trunk/sys/kern/bus_if.m	2016-09-26 04:01:48 UTC (rev 8835)
+++ trunk/sys/kern/bus_if.m	2016-09-26 04:02:26 UTC (rev 8836)
@@ -160,6 +160,20 @@
 };
 
 /**
+ * @brief Notify a bus that a child was deleted
+ *
+ * Called at the beginning of device_delete_child() to allow the parent
+ * to teardown any bus-specific state for the child.
+ * 
+ * @param _dev		the device whose child is being deleted
+ * @param _child	the child device which is being deleted
+ */
+METHOD void child_deleted {
+	device_t _dev;
+	device_t _child;
+};
+
+/**
  * @brief Notify a bus that a child was detached
  *
  * Called after the child's DEVICE_DETACH() method to allow the parent



More information about the Midnightbsd-cvs mailing list