GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
BUS_GENERIC_PRINT_CHILD(9) FreeBSD Kernel Developer's Manual BUS_GENERIC_PRINT_CHILD(9)

bus_generic_print_child, bus_print_child_domain, bus_print_child_footer, bus_print_child_headergeneric implementation of BUS_PRINT_CHILD(9)

#include <sys/param.h>
#include <sys/bus.h>

int
bus_generic_print_child(device_t dev, device_t child);

int
bus_print_child_domain(device_t dev, device_t child);

int
bus_print_child_footer(device_t dev, device_t child);

int
bus_print_child_header(device_t dev, device_t child);

() prints out the default device announcement message. Given device ‘foo0’ on bus ‘bar0’ where foo0 has the description “FooCard 1234” and is associated with the NUMA domain 1, the following would be printed:

foo0: <FooCard 1234> numa-domain 1 on bar0

() calls the three helper functions bus_print_child_header(), bus_print_child_domain(), and bus_print_child_footer().

() outputs the device name and unit followed by the device description in angle brackets (“foo0: <FooCard 1234>”).

() outputs “ numa-domain” followed by the domain number if () returns a valid domain for the device (“numa-domain 1”). If dev is not associated witha valid domain, nothing is output.

These functions can be used to implement BUS_PRINT_CHILD(9) in a bus driver if () is not sufficient.

The number of characters output.

BUS_PRINT_CHILD(9), device(9)

This manual page was written by Doug Rabson.

February 5, 2025 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 9 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.