BUS_CHILD_DETACHED(9)

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

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