1f2560cecSJohn Baldwin.\" -*- nroff -*- 2f2560cecSJohn Baldwin.\" 3*179fa75eSJohn Baldwin.\" Copyright (c) 2012 Hudson River Trading LLC 4f2560cecSJohn Baldwin.\" Written by: John H. Baldwin <jhb@FreeBSD.org> 5f2560cecSJohn Baldwin.\" All rights reserved. 6f2560cecSJohn Baldwin.\" 7f2560cecSJohn Baldwin.\" Redistribution and use in source and binary forms, with or without 8f2560cecSJohn Baldwin.\" modification, are permitted provided that the following conditions 9f2560cecSJohn Baldwin.\" are met: 10f2560cecSJohn Baldwin.\" 1. Redistributions of source code must retain the above copyright 11f2560cecSJohn Baldwin.\" notice, this list of conditions and the following disclaimer. 12f2560cecSJohn Baldwin.\" 2. Redistributions in binary form must reproduce the above copyright 13f2560cecSJohn Baldwin.\" notice, this list of conditions and the following disclaimer in the 14f2560cecSJohn Baldwin.\" documentation and/or other materials provided with the distribution. 15f2560cecSJohn Baldwin.\" 16f2560cecSJohn Baldwin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17f2560cecSJohn Baldwin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18f2560cecSJohn Baldwin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19f2560cecSJohn Baldwin.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20f2560cecSJohn Baldwin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21f2560cecSJohn Baldwin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22f2560cecSJohn Baldwin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23f2560cecSJohn Baldwin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24f2560cecSJohn Baldwin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25f2560cecSJohn Baldwin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26f2560cecSJohn Baldwin.\" SUCH DAMAGE. 27f2560cecSJohn Baldwin.\" 28f2560cecSJohn Baldwin.Dd August 21, 2012 29f2560cecSJohn Baldwin.Dt BUS_CHILD_DETACHED 9 30f2560cecSJohn Baldwin.Os 31f2560cecSJohn Baldwin.Sh NAME 32f2560cecSJohn Baldwin.Nm BUS_CHILD_DETACHED 33f2560cecSJohn Baldwin.Nd "notify a bus device that a child was detached" 34f2560cecSJohn Baldwin.Sh SYNOPSIS 35f2560cecSJohn Baldwin.In sys/param.h 36f2560cecSJohn Baldwin.In sys/bus.h 37f2560cecSJohn Baldwin.Ft void 38f2560cecSJohn Baldwin.Fn BUS_CHILD_DETACHED "device_t dev" "device_t child" 39f2560cecSJohn Baldwin.Sh DESCRIPTION 40f2560cecSJohn BaldwinThe 41f2560cecSJohn Baldwin.Fn BUS_CHILD_DETACHED 42f2560cecSJohn Baldwinmethod is invoked by the new-bus framework after a device is detached. 43f2560cecSJohn BaldwinA bus driver can provide an implementation of this method to 44f2560cecSJohn Baldwinreclaim any resources allocated on behalf of the child or 45f2560cecSJohn Baldwinto cleanup state not properly released by a 46f2560cecSJohn Baldwin.Xr DEVICE_DETACH 9 47f2560cecSJohn Baldwinmethod. 48f2560cecSJohn Baldwin.Sh SEE ALSO 49f2560cecSJohn Baldwin.Xr device 9 , 50f2560cecSJohn Baldwin.Xr DEVICE_DETACH 9 51