BUS_GENERIC_DETACH(9)
π BUS_GENERIC_DETACH π
okay so bestie, welcome to the BUS_GENERIC_DETACH(9) page β it's part of the Kernel Developer's Manual, and it's genuinely one of the most chill pages in the whole kernel, iykyk β¨
πΈ NAME πΈ
bus_generic_detach β the generic implementation of DEVICE_DETACH for buses ππ
π SYNOPSIS π
#include <sys/param.h>
#include <sys/bus.h>
int
bus_generic_detach(device_t dev);
like. it's giving short and sweet. no cap. π«Ά
β¨ DESCRIPTION β¨
okay so here's the tea β β this function hands you an implementation of the DEVICE_DETACH(9) method that most bus code can just... use. it's the plug-and-play bestie of detach methods fr fr.
and what does it do? it simply calls the DEVICE_DETACH(9) method of each child device attached to the bus. that's it. that's the whole vibe. one method call per child, no extra drama, no side quests. π
think of it like a group chat where the bus @everyones all its kids and tells them to detach. one by one. in order. iconic behaviour honestly. π
π RETURN VALUES π
- Zero is returned on success π
- otherwise, an appropriate error is returned π
that's it. that's the return value section. slay. β¨
π SEE ALSO π
go read those next bestie, they're lowkey essential π¦
π AUTHORS π
This manual page was written by Doug Rabson. ty for your service king π«‘π
and that's the whole page!! periodt π this came to you from the Debian crew, dated January 15, 2017 β so yeah, it's been serving these facts for a minute and it still ate πΈπ§β
π¦ 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