Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xen/control/control.c
Show First 20 Lines • Show All 440 Lines • ▼ Show 20 Lines | xctrl_attach(device_t dev) | ||||
/* | /* | ||||
* We don't care about the path updated, just about the value changes | * We don't care about the path updated, just about the value changes | ||||
* on that single node, hence there's no need to queue more that one | * on that single node, hence there's no need to queue more that one | ||||
* event. | * event. | ||||
*/ | */ | ||||
xctrl->xctrl_watch.max_pending = 1; | xctrl->xctrl_watch.max_pending = 1; | ||||
xs_register_watch(&xctrl->xctrl_watch); | xs_register_watch(&xctrl->xctrl_watch); | ||||
if (xen_pv_domain()) | if (xen_has_pv_shutdown_handler()) | ||||
EVENTHANDLER_REGISTER(shutdown_final, xen_pv_shutdown_final, NULL, | EVENTHANDLER_REGISTER(shutdown_final, xen_pv_shutdown_final, NULL, | ||||
SHUTDOWN_PRI_LAST); | SHUTDOWN_PRI_LAST); | ||||
return (0); | return (0); | ||||
} | } | ||||
/** | /** | ||||
* \brief Detach the Xen control device. | * \brief Detach the Xen control device. | ||||
Show All 34 Lines |