sys/kern/subr_bus.c
/**
 * @brief Notify a device of system shutdown
 *
 * This function calls the DEVICE_SHUTDOWN() driver method if the
 * device currently has an attached driver.
 *
 * @returns the value returned by DEVICE_SHUTDOWN()
 */
@brief Notify a device of system shutdown
This function calls the DEVICE_SHUTDOWN() driver method if the
device currently has an attached driver.

@returns the value returned by DEVICE_SHUTDOWN()
@brief Notify a device of system shutdown This function calls the DEVICE_SHUTDOWN () driver method if the device currently has an attached driver . @returns the value returned by DEVICE_SHUTDOWN ()
int
device_shutdown(device_t dev)
{
	if (dev->state < DS_ATTACHED)
		return (0);
	return (DEVICE_SHUTDOWN(dev));
}
int device_shutdown ( device_t dev ) { if ( dev -> state < DS_ATTACHED ) return ( 0 ) ; return ( DEVICE_SHUTDOWN ( dev ) ) ; }
@brief Notify a device of system shutdown
 This function calls the DEVICE_SHUTDOWN() driver method if the
 device currently has an attached driver.
@brief Notify a device of system shutdown This function calls the DEVICE_SHUTDOWN () driver method if the device currently has an attached driver .