FreeBSD/sys/kern/subr_bus.c
/**
 * @brief Default function for suspending a child device.
 *
 * This function is to be used by a bus's DEVICE_SUSPEND_CHILD().
 */
@brief Default function for suspending a child device.
This function is to be used by a bus's DEVICE_SUSPEND_CHILD().
@brief Default function for suspending a child device . This function is to be used by a bus ' s DEVICE_SUSPEND_CHILD () .
int
bus_generic_suspend_child(device_t dev, device_t child)
{
	int	error;
	error = DEVICE_SUSPEND(child);
	if (error == 0)
		child->flags |= DF_SUSPENDED;
	return (error);
}
int bus_generic_suspend_child ( device_t dev , device_t child ) { int error ; error = DEVICE_SUSPEND ( child ) ; if ( error == 0 ) child -> flags |= DF_SUSPENDED ; return ( error ) ; }
@brief Default function for suspending a child device.
@brief Default function for suspending a child device .