FreeBSD/sys/xen/xenbus/xenbusb_back.c
/**
 * \brief Backend XenBus method implementing responses to peer state changes.
 * 
 * \param bus       The XenBus bus parent of child.
 * \param child     The XenBus child whose peer stat has changed.
 * \param state     The current state of the peer.
 */
\brief Backend XenBus method implementing responses to peer state changes.

\param bus       The XenBus bus parent of child.
\param child     The XenBus child whose peer stat has changed.
\param state     The current state of the peer.
\ brief Backend XenBus method implementing responses to peer state changes . \ param bus The XenBus bus parent of child . \ param child The XenBus child whose peer stat has changed . \ param state The current state of the peer .
static void
xenbusb_back_otherend_changed(device_t bus, device_t child,
			      enum xenbus_state peer_state)
{
	xenbusb_otherend_changed(bus, child, peer_state);
	if (peer_state == XenbusStateInitialising
	 && xenbus_dev_is_online(child) != 0
	 && xenbus_get_state(child) == XenbusStateClosed)
		xenbus_set_state(child, XenbusStateInitWait);
}
static void xenbusb_back_otherend_changed ( device_t bus , device_t child , enum xenbus_state peer_state ) { xenbusb_otherend_changed ( bus , child , peer_state ) ; if ( peer_state == XenbusStateInitialising && xenbus_dev_is_online ( child ) != 0 && xenbus_get_state ( child ) == XenbusStateClosed ) xenbus_set_state ( child , XenbusStateInitWait ) ; }
\brief Backend XenBus method implementing responses to peer state changes.
\ brief Backend XenBus method implementing responses to peer state changes .
/* Perform default processing of state. */ /*
	 * "Online" devices are never fully detached in the
	 * newbus sense.  Only the front<->back connection is
	 * torn down.  If the front returns to the initialising
	 * state after closing a previous connection, signal
	 * our willingness to reconnect and that all necessary
	 * XenStore data for feature negotiation is present.
	 */