logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

bus_generic_print_child — generic implementation of DEVICE_PRINT_CHILD for buses

Authors

       This manual page was written by Doug Rabson.

Debian                                          January 15, 2017                      BUS_GENERIC_PRINT_CHILD(9)

Description

       This  implementation  prints  out  the  default  device announcement message.  Given device 'foo0' on bus
       'bar0' where foo0 has the name "FooCard 1234" the following would be printed:

       foo0: <FooCard 1234> on bar0

       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 "on bar0".  These  routines  should  be  used  if
       possible in your own code if bus_generic_print_child() does not completely suit your needs.

Name

       bus_generic_print_child — generic implementation of DEVICE_PRINT_CHILD for buses

Return Values

       The number of characters output.

See Also

device(9)

Synopsis

#include<sys/param.h>#include<sys/bus.h>intbus_generic_print_child(device_tdev, device_tchild);

See Also