Safe Haskell | None |
---|
Mid-level interface to XenCtrl
. Functions that provided by this module are
version-independent from Xen
and raise real exceptions instead of confusing
error codes and errno
.
- interfaceOpen :: MonadIO m => m XcHandle
- interfaceClose :: (MonadIO m, Functor m) => XcHandle -> m ()
- domainGetInfo :: MonadIO m => XcHandle -> m [DomainInfo]
Documentation
interfaceOpen :: MonadIO m => m XcHandleSource
Open the connection to the hypervisor interface, can fail with
XcHandleOpenError
.
interfaceClose :: (MonadIO m, Functor m) => XcHandle -> m ()Source
Close an open hypervisor interface, ignores all possible errors but all the same can fail with segfault or sutin.
domainGetInfo :: MonadIO m => XcHandle -> m [DomainInfo]Source
Returns a list of currently runing domains, 1024 maximum, can fail with
InvalidDomainShutdownReason
and
DomainGetInfoError
.