Lines Matching refs:xctrl
420 struct xctrl_softc *xctrl; in xctrl_attach() local
422 xctrl = device_get_softc(dev); in xctrl_attach()
425 xctrl->xctrl_watch.node = "control/shutdown"; in xctrl_attach()
426 xctrl->xctrl_watch.callback = xctrl_on_watch_event; in xctrl_attach()
427 xctrl->xctrl_watch.callback_data = (uintptr_t)xctrl; in xctrl_attach()
433 xctrl->xctrl_watch.max_pending = 1; in xctrl_attach()
434 xs_register_watch(&xctrl->xctrl_watch); in xctrl_attach()
455 struct xctrl_softc *xctrl; in xctrl_detach() local
457 xctrl = device_get_softc(dev); in xctrl_detach()
460 xs_unregister_watch(&xctrl->xctrl_watch); in xctrl_detach()
485 DEFINE_CLASS_0(xctrl, xctrl_driver, xctrl_methods, sizeof(struct xctrl_softc));
487 DRIVER_MODULE(xctrl, xenstore, xctrl_driver, NULL, NULL);