---
name: "BUS_CHILD_DELETED"
section: "9freebsd"
platform: "linux"
package: "freebsd-manpages"
version: "12.2-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/BUS_CHILD_DELETED/9freebsd"
---

# BUS\_CHILD\_DELETED(9freebsd)

notify a bus device that a child is being deleted

## NAME

**BUS\_CHILD\_DELETED** – notify a bus device that a child is being deleted

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<sys/bus.h\>**

*void*\

**BUS\_CHILD\_DELETED**(*device\_t dev*, *device\_t child*);

## DESCRIPTION

The **BUS\_CHILD\_DELETED**() method is invoked by the new-bus framework when a device is deleted. A bus driver can provide an implementation of this method to release bus-specific resources associated with a device such as instance variables.

## SEE ALSO

[BUS\_ADD\_CHILD(9)](/BUS_ADD_CHILD/9.md), [device(9)](/device/9.md)

## HISTORY

The **BUS\_CHILD\_DELETED**() method first appeared in FreeBSD 10.0.
