BUS_CHILD_DETACHED(9)

BUS_CHILD_DETACHED9

Notify a bus device that a child was detached

Usage

#include <sys/param.h>

#include <sys/bus.h>

void

BUS_CHILD_DETACHED(device_t dev, device_t child);

Overview

The BUS_CHILD_DETACHED() method is invoked by the new-bus framework after a device is detached or if a driver's attach routine (see DEVICE_ATTACH(9)) fails. A bus driver can provide an implementation of this method to reclaim any resources allocated on behalf of the child or to cleanup state not properly released by a DEVICE_DETACH(9) method.

Releases

30 releases since FreeBSD 10.0-RELEASE; the text changed 17 times.

  1. 10.0
  2. 10.1
  3. 10.2
  4. 10.3
  5. 10.4
  6. 11.0
  7. 11.1
  8. 11.2
  9. 11.3
  10. 11.4
  11. 12.0
  12. 12.1
  13. 12.2
  14. 12.3
  15. 12.4
  16. 13.0–13.2
  17. 13.3–14.2
  18. 14.3–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.