BUS_CHILD_DETACHED(9)
π BUS_CHILD_DETACHED π
okay bestie, so this is a page from the Kernel Developer's Manual, section 9 β yes, that section 9, the one where all the kernel-internals girlies hang out π
. It's literally called BUS_CHILD_DETACHED and it's here to spill the tea on how a bus device finds out one of its children just left the group chat. π¦
β¨ NAME β¨
BUS_CHILD_DETACHED β notify a bus device that a child was detached
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/bus.h>
void
BUS_CHILD_DETACHED(device_t dev, device_t child);
π DESCRIPTION π
so the BUS_CHILD_DETACHED() method is invoked by the new-bus framework after a device is detached. periodt. β¨
and like, a bus driver can totally provide an implementation of this method if it wants to:
- reclaim any resources allocated on behalf of the child, or
- cleanup state that wasn't properly released by a
DEVICE_DETACH(9)method
it's giving "the child already moved out, but their stuff is still in your room" energy π β this is your moment to go through the closet and deal with it. no cap.
fr fr, if you don't implement this, whatever the child left behind just... stays behind. π do with that information what you will.
π SEE ALSO π
mwah π that's the whole page, you ate it up. this one came from Debian, dated August 21, 2012 β iconic vintage behavior honestly πβ¨
π¦ 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) 2012 Hudson River Trading LLC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms