DEVICE_DELETE_CHILD(9)
π NAME π
okay bestie, welcome to DEVICE_DELETE_CHILD(9) from the Kernel Developer's Manual π
this is the one that says how to delete a child from a device. No cap.
device_delete_child β delete a child from a device β¨
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <sys/bus.h>
int
device_delete_child(device_t dev, device_t child);
π¦ DESCRIPTION π¦
The specified device is removed from dev and deleted. If the device is currently attached, it is first detached (see DEVICE_ATTACH(9) and DEVICE_DETACH(9)). That's the whole vibe. Periodt.
πΈ RETURN VALUES πΈ
Zero is returned on success, otherwise an error is returned. So if you get 0, slay. If not, it's giving error. π
π₯ SEE ALSO π₯
π AUTHORS π
This manual page was written by Doug Rabson. iconic. π
xoxo, this was Debian's page from June 16, 1998, for DEVICE_DELETE_CHILD(9) ππ
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1998 Doug Rabson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms