| Safe Haskell | None |
|---|
System.Xen.Mid
Description
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 :: MonadBase IO m => m XcHandle
- interfaceClose :: MonadBase IO m => XcHandle -> m ()
- domainGetInfo :: MonadBase IO m => XcHandle -> m [DomainInfo]
Documentation
interfaceOpen :: MonadBase IO m => m XcHandleSource
Open the connection to the hypervisor interface, can fail with
XcHandleOpenError.
interfaceClose :: MonadBase IO m => XcHandle -> m ()Source
Close an open hypervisor interface, ignores all possible errors but all the same can fail with segfault or sutin.
domainGetInfo :: MonadBase IO m => XcHandle -> m [DomainInfo]Source
Returns a list of currently runing domains, 1024 maximum, can fail with
InvalidDomainShutdownReason and
DomainGetInfoError.