BUS_GENERIC_PRINT_CHILD(9freebsd)
π BUS_GENERIC_PRINT_CHILD(9) π
okay bestie, so this is a page from the Kernel Developer's Manual, and it's about bus_generic_print_child β the generic implementation of DEVICE_PRINT_CHILD for buses. yes we are in the kernel. yes we are thriving. β¨
πΈ NAME πΈ
bus_generic_print_child β the generic implementation of DEVICE_PRINT_CHILD for buses. it's giving "one function to announce them all". π
π SYNOPSIS π
#include <sys/param.h>
#include <sys/bus.h>
int
bus_generic_print_child(device_t dev, device_t child);
like. two includes and one little function. no cap. π¦
β¨ DESCRIPTION β¨
so what does it do, you ask? this implementation prints out the default device announcement message. that's it, that's the whole vibe. π
okay let's get concrete. say you've got a device called foo0 sitting on a bus called bar0, and foo0 has the name "FooCard 1234". what gets printed is literally this:
foo0: <FooCard 1234> on bar0
iconic honestly. π
and here's the tea: bus_generic_print_child itself calls two functions β bus_print_child_header() and bus_print_child_footer(). the former prints "foo0: <FooCard 1234>" and the latter prints "on bar0". so if bus_generic_print_child() doesn't completely suit your needs, you should use these routines in your own code if possible. that's the assignment, bestie. π
π₯ RETURN VALUES π₯
the number of characters output. that's it. that's the return value. π«Ά
π¦ SEE ALSO π¦
π AUTHORS π
this manual page was written by Doug Rabson. we love a legend. π
slay, you made it to the end, bestie!! π this page came to you from the Debian distribution, dated January 15, 2017, and it's filed under BUS_GENERIC_PRINT_CHILD(9). go print some children. responsibly. πβ¨πΈ
π¦ 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