hen-0.0.0: 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 :: 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.