posix-realtime-0.0.0.2: POSIX Realtime functionality

Portabilitynon-portable (requires POSIX)
Stabilityprovisional
MaintainerWilliam N. Halchin (vigalchin@gmail.com)
Safe HaskellNone

System.Posix.Realtime.Aio

Description

POSIX 1003.1b POSIX Asynchronous I/O

Synopsis

Documentation

type AIOCB = ForeignPtr AIOCBStructSource

makeAIOCB :: Fd -> Int -> Int -> FileOffset -> Ptr Word8 -> ByteCount -> Sigevent -> IO AIOCBSource

makeAIOCB is a helper function that builds an aiocb from all its fields

aioRead :: AIOCB -> IO ()Source

Posix AIO return

aioWrite :: AIOCB -> IO ()Source

Posix AIO write

aioReturn :: AIOCB -> IO ByteCountSource

Posix AIO return

aioError :: AIOCB -> IO ErrnoSource

Posix AIO error

aioCancel :: Fd -> AIOCB -> IO ()Source

Posix AIO cancel

data SyncOp Source

Posix asynchronous file synchronization!

Constructors

DSync 
Sync 

aioFsync :: SyncOp -> AIOCB -> IO ()Source

aioSuspend :: [AIOCB] -> TimeSpec -> IO ()Source

Posix AIO suspend

type ListIOMode = IntSource

Posix AIO lio_listio