BUS_GENERIC_ATTACH(9)
π BUS_GENERIC_ATTACH π
okay bestie, gather round, we're talking about BUS_GENERIC_ATTACH(9) from the Kernel Developer's Manual β¨ this one's a lil kernel function, not a command you type in your shell, so it's giving very much "deep lore" energy π§
πΈ NAME πΈ
bus_generic_attach β the generic implementation of DEVICE_ATTACH for buses πβ¨
π SYNOPSIS π
#include <sys/param.h>
#include <sys/bus.h>
int
bus_generic_attach(device_t dev);
π DESCRIPTION π
So here's the vibe: this function hands you an implementation of the DEVICE_ATTACH(9) method that most bus code can just... use. No cap. π«Ά
It literally just calls device_probe_and_attach(9) for each child device that's attached to the bus. That's it. That's the whole job. It's giving "I do one thing and I do it flawlessly" energy, and honestly? Iconic. π
β RETURN VALUES β
- Zero gets returned when everything's a slay β
- otherwise, an appropriate error comes back π
π¦ SEE ALSO π¦
π AUTHORS π
This manual page was written by Doug Rabson. ty king, we appreciate you π
and that's the whole page bestie, mwah π this lil gem comes to you from the Debian crew, dated January 15, 2017 β yeah it's a vintage, and vintage is always in π bye pookie, go attach some devices π«Άβ¨
π¦ 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