- data Xen a
- runXen :: Xen a -> a -> IO a
- runXen_ :: Xen a -> IO ()
- execXen :: Xen a -> IO (Either XenError a, XenMessages)
- mkCallback :: Dumpcore_rtn_t -> IO (FunPtr Dumpcore_rtn_t)
- xcInterfaceOpen :: Xen XCHandle
- xcInterfaceClose :: XCHandle -> Xen ()
- xcFindDeviceNumber :: String -> Xen ()
- xcDomainCreate :: XCHandle -> Word32 -> XenDomainHandleT -> Word32 -> Ptr Word32 -> Xen ()
- xcDomainDumpcore :: XCHandle -> DomId -> String -> Xen ()
- xcDomainDumpcoreViaCallback :: XCHandle -> DomId -> DumpcoreCallback -> Xen ()
- xcDomainMaxVCPUs :: XCHandle -> DomId -> Int -> Xen ()
- xcDomainPause :: XCHandle -> DomId -> Xen ()
- xcDomainUnpause :: XCHandle -> DomId -> Xen ()
- xcDomainResume :: XCHandle -> DomId -> Bool -> Xen ()
- xcDomainShutdown :: XCHandle -> DomId -> XCShutdown -> Xen ()
- xcVCPUSetAffinity :: XCHandle -> DomId -> Int -> [Int] -> Xen ()
- xcVCPUGetAffinity :: XCHandle -> DomId -> Int -> Xen [Int]
- xcDomainGetInfo :: XCHandle -> DomId -> Int -> Xen XCDomInfo
- xcDomainGetInfoList :: XCHandle -> DomId -> Int -> Xen XCDomInfo
- xcDomainHVMGetContext :: XCHandle -> DomId -> Xen ByteString
- xcDomainHVMSetContext :: XCHandle -> DomId -> ByteString -> Xen ()
- xcVCPUGetInfo :: XCHandle -> DomId -> Int -> Xen VCPUInfo
- xcDomainSetCPUWeight :: XCHandle -> DomId -> Float -> Xen ()
- xcDomainGetCPUUsage :: XCHandle -> DomId -> Int -> Xen Integer
- xcDomainSetHandle :: XCHandle -> DomId -> ByteString -> Xen ()
- xcSedfDomainSet :: XCHandle -> DomId -> Word64 -> Word64 -> Word64 -> Word16 -> Word16 -> Xen ()
- xcSedfDomainGet :: XCHandle -> DomId -> Xen (Word64, Word64, Word64, Word16, Word16)
- xcDomainSendTrigger :: XCHandle -> DomId -> Int -> Int -> Xen ()
- xcEvtChanAllocUnbound :: XCHandle -> DomId -> DomId -> Xen XCEHandle
- xcEvtChanReset :: XCHandle -> DomId -> Xen ()
- xcEvtChanOpen :: Xen XCEHandle
- xcEvtChanClose :: XCEHandle -> Xen ()
- xcEvtChanNotify :: XCEHandle -> EventChannelPort -> Xen ()
- xcEvtChanBindUnboundPort :: XCEHandle -> DomId -> Xen EventChannelPort
- xcEvtChanBindInterdomain :: XCEHandle -> DomId -> EventChannelPort -> Xen EventChannelPort
- xcEvtChanBindVIRQ :: XCEHandle -> Int -> Xen EventChannelPort
- xcEvtChanUnbind :: XCEHandle -> EventChannelPort -> Xen ()
- xcEvtChanPending :: XCEHandle -> Xen EventChannelPort
- xcEvtChanUnmask :: XCEHandle -> EventChannelPort -> Xen ()
- xcVersion :: XCHandle -> XenVersion -> Xen String
- getXenVersion :: Xen String
- newtype DomId = DomId Word32
- type DumpcoreCallback = ByteString -> IO Int
- data XCEHandle
- data EventChannelPort
Documentation
Xen is a monad transformer stack consisting of ErrorT, WritterT and IO.
Monad Xen | |
MonadIO Xen | |
MonadError XenError Xen | |
MonadWriter XenMessages Xen |
runXen :: Xen a -> a -> IO aSource
Given a Xen action and a default value, will run the action returning the result on success or the default value on failure.
execXen :: Xen a -> IO (Either XenError a, XenMessages)Source
Runs the Xen action, returning the result (or Left error) and a trace of messages.
xcInterfaceClose :: XCHandle -> Xen ()Source
xcFindDeviceNumber :: String -> Xen ()Source
xcDomainCreate :: XCHandle -> Word32 -> XenDomainHandleT -> Word32 -> Ptr Word32 -> Xen ()Source
xcDomainDumpcoreViaCallback :: XCHandle -> DomId -> DumpcoreCallback -> Xen ()Source
xcDomainShutdown :: XCHandle -> DomId -> XCShutdown -> Xen ()Source
xcDomainHVMSetContext :: XCHandle -> DomId -> ByteString -> Xen ()Source
xcDomainSetHandle :: XCHandle -> DomId -> ByteString -> Xen ()Source
xcSedfDomainSet :: XCHandle -> DomId -> Word64 -> Word64 -> Word64 -> Word16 -> Word16 -> Xen ()Source
xcEvtChanClose :: XCEHandle -> Xen ()Source
xcEvtChanNotify :: XCEHandle -> EventChannelPort -> Xen ()Source
xcEvtChanUnbind :: XCEHandle -> EventChannelPort -> Xen ()Source
xcEvtChanUnmask :: XCEHandle -> EventChannelPort -> Xen ()Source
DomId identifies the Xen VM
type DumpcoreCallback = ByteString -> IO IntSource