xenbus_switch_state
int xenbus_switch_state(struct xenbus_device *dev,
xenbus_switch_state(sc->sc_xbusd, NULL, XenbusStateClosing);
xenbus_switch_state(sc->sc_xbusd, NULL, XenbusStateInitialised);
xenbus_switch_state(sc->sc_xbusd, NULL,
xenbus_switch_state(sc->sc_xbusd, NULL, XenbusStateClosed);
xenbus_switch_state(sc->sc_xbusd, NULL,
err = xenbus_switch_state(xbusd, NULL, XenbusStateInitWait);
if ((err = xenbus_switch_state(xbusd, NULL, XenbusStateInitialised))) {
xenbus_switch_state(xbusd, NULL, XenbusStateConnected);
xenbus_switch_state(xbusd, NULL, XenbusStateClosing);
xenbus_switch_state(sc->sc_xbusd, NULL, XenbusStateClosing);
xenbus_switch_state(sc->sc_xbusd, NULL, XenbusStateInitialised);
xenbus_switch_state(sc->sc_xbusd, NULL, XenbusStateConnected);
xenbus_switch_state(sc->sc_xbusd, NULL, XenbusStateClosed);
xenbus_switch_state(sc->sc_xbusd, NULL, XenbusStateConnected);
error = xenbus_switch_state(xbusd, NULL, XenbusStateInitWait);
xenbus_switch_state(xbdi->xbdi_xbusd, NULL, XenbusStateClosing);
err = xenbus_switch_state(xbusd, NULL, XenbusStateConnected);
err = xenbus_switch_state(xbusd, NULL, XenbusStateInitWait);
xenbus_switch_state(xbusd, NULL, XenbusStateConnected);
xenbus_switch_state(xbusd, NULL, XenbusStateClosing);
error = xenbus_switch_state(sc->sc_xbusd, xbt, XenbusStateInitialised);
xenbus_switch_state(sc->sc_xbusd, NULL, XenbusStateClosed);
xenbus_switch_state(sc->sc_xbusd, NULL, XenbusStateConnected);
xenbus_switch_state(sc->sc_xbusd, NULL, XenbusStateConnected);
xenbus_switch_state(dev, NULL, XenbusStateClosing);
xenbus_switch_state(xbusd, NULL, XenbusStateClosed);