DEVICE_DELETE_CHILDREN(9)
π DEVICE_DELETE_CHILDREN(9) π
okay bestie, welcome to the Kernel Developerβs Manual page for device_delete_children. itβs giving βclean up the whole child-device situation,β and yes, the manual name is literally DEVICE_DELETE_CHILDREN(9). letβs get into it. β¨
π NAME π
device_delete_children β delete all child devices of a given device
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <sys/bus.h>
int
device_delete_children(device_t dev);
πΈ DESCRIPTION πΈ
okay so device_delete_children() is the function that deletes all child devices of the given device dev β if there are any, that is. it does this by using device_delete_child() for each device it finds. like, one by one, bestie. π«Ά
and if a child device cannot be deleted? this function will return an error code. no cap. π
π RETURN VALUES π
- Zero is returned on success. slay, we love a clean exit. β
- a non-zero return value indicates failure. not the vibe, but at least you know. π
π¦ SEE ALSO π¦
π AUTHORS π
this manual page was written by Jeroen Ruigrok van der Werven. iconic. π
source/version: Debian Β· date: September 28, 2018 Β· DEVICE_DELETE_CHILDREN(9) β thatβs the cute sign-off, bestie πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2018 Jeroen Ruigrok van der Werven
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms