FreeBSD/sys/dev/xen/blkback/blkback.c
/**
 * Prepare this block back device for suspension of this VM.
 * 
 * \param dev  NewBus device object representing this Xen Block Back instance.
 *
 * \return  0 for success, errno codes for failure.
 */
Prepare this block back device for suspension of this VM.

\param dev  NewBus device object representing this Xen Block Back instance.

\return  0 for success, errno codes for failure.
Prepare this block back device for suspension of this VM . \ param dev NewBus device object representing this Xen Block Back instance . \ return 0 for success errno codes for failure .
static int
xbb_suspend(device_t dev)
{
#ifdef NOT_YET
        struct xbb_softc *sc = device_get_softc(dev);
        mtx_lock(&sc->xb_io_lock);
        sc->connected = BLKIF_STATE_SUSPENDED;
        mtx_unlock(&sc->xb_io_lock);
#endif
        return (0);
}
static int xbb_suspend ( device_t dev ) { #ifdef NOT_YET struct xbb_softc * sc = device_get_softc ( dev ) ; mtx_lock ( & sc -> xb_io_lock ) ; sc -> connected = BLKIF_STATE_SUSPENDED ; mtx_unlock ( & sc -> xb_io_lock ) ; #endif return ( 0 ) ; }
Prepare this block back device for suspension of this VM.
Prepare this block back device for suspension of this VM .
/* Prevent new requests being issued until we fix things up. */