FreeBSD/sys/kern/subr_bus.c
/**
 * @brief Helper function for implementing DEVICE_SHUTDOWN()
 *
 * This function can be used to help implement the DEVICE_SHUTDOWN()
 * for a bus. It calls device_shutdown() for each of the device's
 * children.
 */
@brief Helper function for implementing DEVICE_SHUTDOWN()
This function can be used to help implement the DEVICE_SHUTDOWN()
for a bus. It calls device_shutdown() for each of the device's
children.
@brief Helper function for implementing DEVICE_SHUTDOWN () This function can be used to help implement the DEVICE_SHUTDOWN () for a bus . It calls device_shutdown () for each of the device ' s children .
int
bus_generic_shutdown(device_t dev)
{
	device_t child;
	TAILQ_FOREACH(child, &dev->children, link) {
		device_shutdown(child);
	}
	return (0);
}
int bus_generic_shutdown ( device_t dev ) { device_t child ; TAILQ_FOREACH ( child , & dev -> children , link ) { device_shutdown ( child ) ; } return ( 0 ) ; }
@brief Helper function for implementing DEVICE_SHUTDOWN()
 This function can be used to help implement the DEVICE_SHUTDOWN()
 for a bus.
@brief Helper function for implementing DEVICE_SHUTDOWN () This function can be used to help implement the DEVICE_SHUTDOWN () for a bus .