BUS_PRINT_CHILD(9)
π BUS_PRINT_CHILD β bestie, let's talk about your device π
okay so this is the BUS_PRINT_CHILD(9) manual page from the Kernel Developer's Manual, and she is lowkey iconic. sit down, hydrate, and let's get into it β¨
πΈ NAME πΈ
BUS_PRINT_CHILD</p purple> β print information about a device π¨οΈπ«
like. literally that's the whole job. it prints info about a device. no cap.
π SYNOPSIS π
first you gotta bring the headers, bestie:
#include <sys/param.h>
#include <sys/bus.h>
then the function itself:
int
BUS_PRINT_CHILD(device_t dev, device_t child);
two device_t args, one int coming back. we love a tidy signature π
π¦ DESCRIPTION π¦
so BUS_PRINT_CHILD() is a method, and it gets called from system code that's printing out a description of a device. basically the kernel is like "hey, describe yourself" and this is the method that answers π
what it should do: describe the attachment that the child has with the parent. that's the vibe. the relationship. the lore. π«Ά
for example β and this is the example, not a general rule β the TurboLaser bus prints which node the device is attached to. slay.
if you wanna know the proper way to format the messages thatBUS_PRINT_CHILD()prints, please go look atbus_generic_print_child(9). that's the style guide, bestie. read it. fr fr.
β RETURN VALUES β
it returns the number of characters output. that's it. that's the return value. count 'em and send 'em π
π SEE ALSO π
π AUTHORS π
this manual page was written by Doug Rabson. thank you king, the page ate and left no crumbs π
mwah β this lil page came from the Debian crew, dated January 6, 2005, and it lives in the Kernel Developer's Manual as BUS_PRINT_CHILD(9). go print some children, bestie π§β¨π
π¦ 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