Safe Haskell | None |
---|
Types for working with XenCtrl
data and accoring Storable
instances.
- newtype XcHandle = XcHandle CIntPtr
- newtype DomId = DomId {}
- data DomainFlag
- data DomainShutdownReason
- data DomainInfo = DomainInfo {
- domainInfoId :: !DomId
- domainInfoSsidRef :: !Word32
- domainInfoFlags :: BitSet DomainFlag
- domainInfoShutdownReason :: Maybe DomainShutdownReason
- domainInfoNumberOfPages :: !Word32
- domainInfoNumberOfSharedPages :: !Word32
- domainInfoSharedInfoFrame :: !Word32
- domainInfoCpuTime :: !Word64
- domainInfoMaxMemKb :: !Word32
- domainInfoNubmerOfOnlineVcpus :: !Word32
- domainInfoMaxVcpuId :: !Word32
- domainInfoDomHandle :: UUID
- domainInfoCpuPool :: !Word32
Documentation
Entry point of the hypervisor interface connection, it's a file descriptor in xen 3 and pointer to corresponging structure in xen 4.
Domain id, wrapper around Word32
.
data DomainFlag Source
Domain flags. It's translated from xc_dominfo structure, so it's possible to
be mutual exclusion flags in one domain, e.g. DomainFlagShutdown
and
DomainFlagRunning
.
data DomainShutdownReason Source
Domain shutdown reason it's only meaningful if domain has DomainFlagShutdown
flag.
DomainShutdownReasonPoweroff | |
DomainShutdownReasonReboot | |
DomainShutdownReasonSuspend | |
DomainShutdownReasonCrash | |
DomainShutdownReasonWatchdog |
Eq DomainShutdownReason | |
Ord DomainShutdownReason | |
Show DomainShutdownReason | |
Storable DomainShutdownReason | Constats used in this instance defined in xen/sched.h. |
data DomainInfo Source
Information about a single domain.