device_delete_children(9)

device_delete_children9

Delete all child devices of a given device

Usage

#include <sys/param.h>

#include <sys/bus.h>

int

device_delete_children(device_t dev);

Overview

The device_delete_children() function deletes all child devices of the given device dev, if any, using the device_delete_child() function for each device it finds. If a child device cannot be deleted, this function will return an error code.

Return values

Zero is returned on success, a non-zero return value indicates failure.

Releases

15 releases since FreeBSD 13.0-RELEASE; the text changed 1 time.

  1. 13.0–13.2
  2. 13.3–16.0

Authors

This manual page was written by Jeroen Ruigrok van der Werven.

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