BUS_CHILD_DETACHED(9)
π BUS_CHILD_DETACHED π
okay so this is the BUS_CHILD_DETACHED(9) page from the Kernel Developer's Manual, and it's literally about giving a bus device the polite little βhey bestie, your child got detachedβ notification. no cap.
πΈ NAME πΈ
BUS_CHILD_DETACHED β notify a bus device that a child was detached. iconic behavior, honestly.
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <sys/bus.h>
void
BUS_CHILD_DETACHED(device_t dev, device_t child);
π DESCRIPTION π
The BUS_CHILD_DETACHED() method is invoked by the new-bus framework after a device is detached, or if a driver's attach routine fails β see DEVICE_ATTACH(9) for that whole situation, iykyk.
A bus driver can provide an implementation of this method to reclaim any resources allocated on behalf of the child, or to cleanup state that wasn't properly released by a DEVICE_DETACH(9) method. it's giving βresponsible cleanup eraβ β¨π
π¦ SEE ALSO π¦
okay that's the whole vibe. this page is from Debian, dated January 9, 2025, and the manual is BUS_CHILD_DETACHED(9). mwah ππ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2012 Hudson River Trading LLC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms