xref: /freebsd/share/man/man9/BUS_CHILD_DELETED.9 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
16f7d0018SJohn Baldwin.\" -*- nroff -*-
26f7d0018SJohn Baldwin.\"
3*179fa75eSJohn Baldwin.\" Copyright (c) 2012 Hudson River Trading LLC
46f7d0018SJohn Baldwin.\" Written by: John H. Baldwin <jhb@FreeBSD.org>
56f7d0018SJohn Baldwin.\" All rights reserved.
66f7d0018SJohn Baldwin.\"
76f7d0018SJohn Baldwin.\" Redistribution and use in source and binary forms, with or without
86f7d0018SJohn Baldwin.\" modification, are permitted provided that the following conditions
96f7d0018SJohn Baldwin.\" are met:
106f7d0018SJohn Baldwin.\" 1. Redistributions of source code must retain the above copyright
116f7d0018SJohn Baldwin.\"    notice, this list of conditions and the following disclaimer.
126f7d0018SJohn Baldwin.\" 2. Redistributions in binary form must reproduce the above copyright
136f7d0018SJohn Baldwin.\"    notice, this list of conditions and the following disclaimer in the
146f7d0018SJohn Baldwin.\"    documentation and/or other materials provided with the distribution.
156f7d0018SJohn Baldwin.\"
166f7d0018SJohn Baldwin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
176f7d0018SJohn Baldwin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
186f7d0018SJohn Baldwin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
196f7d0018SJohn Baldwin.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
206f7d0018SJohn Baldwin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
216f7d0018SJohn Baldwin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
226f7d0018SJohn Baldwin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
236f7d0018SJohn Baldwin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
246f7d0018SJohn Baldwin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
256f7d0018SJohn Baldwin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
266f7d0018SJohn Baldwin.\" SUCH DAMAGE.
276f7d0018SJohn Baldwin.\"
286f7d0018SJohn Baldwin.Dd August 21, 2012
296f7d0018SJohn Baldwin.Dt BUS_CHILD_DELETED 9
306f7d0018SJohn Baldwin.Os
316f7d0018SJohn Baldwin.Sh NAME
326f7d0018SJohn Baldwin.Nm BUS_CHILD_DELETED
336f7d0018SJohn Baldwin.Nd "notify a bus device that a child is being deleted"
346f7d0018SJohn Baldwin.Sh SYNOPSIS
356f7d0018SJohn Baldwin.In sys/param.h
366f7d0018SJohn Baldwin.In sys/bus.h
376f7d0018SJohn Baldwin.Ft void
386f7d0018SJohn Baldwin.Fn BUS_CHILD_DELETED "device_t dev" "device_t child"
396f7d0018SJohn Baldwin.Sh DESCRIPTION
406f7d0018SJohn BaldwinThe
416f7d0018SJohn Baldwin.Fn BUS_CHILD_DELETED
426f7d0018SJohn Baldwinmethod is invoked by the new-bus framework when a device is deleted.
436f7d0018SJohn BaldwinA bus driver can provide an implementation of this method to
446f7d0018SJohn Baldwinrelease bus-specific resources associated with a device such as
456f7d0018SJohn Baldwininstance variables.
466f7d0018SJohn Baldwin.Sh SEE ALSO
476f7d0018SJohn Baldwin.Xr BUS_ADD_CHILD 9 ,
486f7d0018SJohn Baldwin.Xr device 9
496f7d0018SJohn Baldwin.Sh HISTORY
506f7d0018SJohn BaldwinThe
516f7d0018SJohn Baldwin.Fn BUS_CHILD_DELETED
526f7d0018SJohn Baldwinmethod first appeared in
536f7d0018SJohn Baldwin.Fx 10.0 .
54