hen-0.1.0.1: Haskell bindings to Xen hypervisor interface

Safe HaskellNone

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.

Synopsis

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.