| Main index | Section 9 | Options |
#include <sys/param.h>
#include <sys/bus.h>
foo0: <FooCard 1234> numa-domain 1 on bar0
bus_generic_print_child() calls the three helper functions bus_print_child_header(), bus_print_child_domain(), and bus_print_child_footer().
bus_print_child_header() outputs the device name and unit followed by the device description in angle brackets ( "foo0: <FooCard 1234>" ).
bus_print_child_domain() outputs "amp; numa-domain" followed by the domain number if bus_get_domain() returns a valid domain for the device ( "numa-domain 1" ). If dev is not associated witha valid domain, nothing is output.
bus_print_child_footer() outputs the string "amp; on" followed by the parent device's name and unit ( "amp; on bar0" ).
These functions can be used to implement BUS_PRINT_CHILD(9) in a bus driver if bus_generic_print_child() is not sufficient.
| BUS_GENERIC_PRINT_CHILD (9) | February 5, 2025 |
| Main index | Section 9 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | The āNā in NFS stands for Not, or Need, or perhaps Nightmare | ” |
| — Harry Spencer | ||