static int hv_shutdown_attach(device_t dev) { hv_util_sc *softc = (hv_util_sc*)device_get_softc(dev); softc->callback = hv_shutdown_cb; return hv_util_attach(dev); }
static int hv_timesync_attach(device_t dev) { hv_timesync_sc *softc = device_get_softc(dev); softc->util_sc.callback = hv_timesync_cb; TASK_INIT(&softc->task, 1, hv_set_host_time, softc); return hv_util_attach(dev); }
static int hv_heartbeat_attach(device_t dev) { return (hv_util_attach(dev, vmbus_heartbeat_cb)); }
static int hv_shutdown_attach(device_t dev) { return hv_util_attach(dev, hv_shutdown_cb); }
static int hv_timesync_attach(device_t dev) { return (hv_util_attach(dev, vmbus_timesync_cb)); }