XBT_NULL
(void) xvdi_switch_state(ring->ri_dip, XBT_NULL, XenbusStateInitWait);
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateClosing);
e = xvdi_switch_state(dip, XBT_NULL, XenbusStateInitialised);
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateClosed);
(void) xvdi_switch_state(ring->ri_dip, XBT_NULL, XenbusStateClosing);
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateClosed);
e = xenbus_gather(XBT_NULL, oename, "ring-ref", "%lu", &gref,
e = xenbus_gather(XBT_NULL, oename, "protocol", "%63s",
(void) xenbus_printf(XBT_NULL, oename,
if (xenbus_printf(XBT_NULL, xsname, XBP_MEDIA_REQ_SUP, "%d", 1) != 0)
(void) xenbus_printf(XBT_NULL, xsname, "node", "%s", path);
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateClosing);
(void) xvdi_switch_state(dip, XBT_NULL, new_state);
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateInitWait);
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateInitialised);
err = xenbus_gather(XBT_NULL, oename,
err = xenbus_gather(XBT_NULL, oename,
if (xenbus_printf(XBT_NULL, xsname, XBP_MEDIA_REQ, "%s", req) != 0)
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateClosed);
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateInitialising);
if (xenbus_gather(XBT_NULL, oename,
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateConnected);
(void) xenbus_printf(XBT_NULL, "guest/xdf", "version", "%d",
(void) xvdi_switch_state(vdp->xdf_dip, XBT_NULL, XenbusStateClosed);
(void) xenbus_switch_state(dev, XBT_NULL, XenbusStateClosing);
int err = xenbus_gather(XBT_NULL, path, "state", "%d", &result, NULL);
int err = xenbus_gather(XBT_NULL, xendev->nodename,
if (xenbus_read(XBT_NULL, dir, node, &p, &n) != 0)
d = xenbus_directory(XBT_NULL, dir, node, &dir_n);
if ((err = xenbus_read(XBT_NULL, dir, node, (void **)&str, &n)) != 0)
err = xs_single(XBT_NULL, XS_TRANSACTION_START, "", &id_str, &len);
return (xs_talkv(XBT_NULL, XS_WATCH, iov, 2, NULL, NULL));
return (xs_talkv(XBT_NULL, XS_UNWATCH, iov, 2, NULL, NULL));
if (xenbus_scanf(XBT_NULL, xsname,
if (xenbus_gather(XBT_NULL, oename,
if (xenbus_scanf(XBT_NULL, oename,
if (xenbus_scanf(XBT_NULL, oename,
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateConnected);
(void) xvdi_switch_state(dip, XBT_NULL,
(void) xvdi_switch_state(dip, XBT_NULL,
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateClosing);
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateClosed);
if (xenbus_printf(XBT_NULL, xsname,
if (xenbus_printf(XBT_NULL, xsname,
if (xenbus_printf(XBT_NULL, xsname,
(void) xvdi_switch_state(dip, XBT_NULL, XenbusStateInitWait);
if (xenbus_scanf(XBT_NULL, oename,
if (xenbus_scanf(XBT_NULL, xsname,
if (xenbus_scanf(XBT_NULL, xsname,
if (xenbus_scanf(XBT_NULL, xsname,
(void) xenbus_printf(XBT_NULL, "guest/xnf", "version", "%d",
XBT_NULL, XenbusStateClosed);
err = xenbus_scanf(XBT_NULL, oename, "mac",
err = xenbus_scanf(XBT_NULL, oename,
err = xenbus_scanf(XBT_NULL, oename,
err = xenbus_scanf(XBT_NULL, oename, "feature-sg", "%d", &be_cap);
err = xenbus_scanf(XBT_NULL, oename, "feature-gso-tcpv4", "%d",
(void) xenbus_printf(XBT_NULL, "guest/xpvd", "version", "%d",
if ((xenbus_read(XBT_NULL, pdp->xd_xsdev.nodename, name, &prop_str,
(xenbus_read(XBT_NULL, pdp->xd_xsdev.otherend, name, &prop_str,
(void) xvdi_switch_state(dip, XBT_NULL,
(void) xvdi_switch_state(dip, XBT_NULL,
(xenbus_read(XBT_NULL, pdp->xd_hp_watch.node, "",
if ((xenbus_read(XBT_NULL, "", vec[XS_WATCH_PATH], (void *)be, &bel)
if ((domains = xenbus_directory(XBT_NULL, xdcp->xs_path_be, "",
if ((devices = xenbus_directory(XBT_NULL, path, domain_path,
(void) xenbus_read(XBT_NULL, pdp->xd_hp_watch.node, "",
if (xenbus_read(XBT_NULL, xsname, "mac", (void *)&prop_str,
if (xenbus_read(XBT_NULL, pdp->xd_xsdev.otherend, "dev",
(void) xvdi_switch_state(dip, XBT_NULL,
(xenbus_read(XBT_NULL, xsname, "type", (void *)&type, &tlen)
(void) xenbus_printf(XBT_NULL, "guest/xpv", "version", "%d",
if (xenbus_scanf(XBT_NULL, dir, "availability", "%s", state) == 0) {