DEVICE_DELETE_CHILDREN(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’… 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