Idris2Doc : System.Linux.TimerFD

System.Linux.TimerFD

(source)

Reexports

importpublic System.Clock

Definitions

dataClockTpe : Type
Totality: total
Visibility: public export
Constructors:
REALTIME : ClockTpe
MONOTONIC : ClockTpe
BOOTTIME : ClockTpe
REALTIME_ALARM : ClockTpe
BOOTTIME_ALARM : ClockTpe

Hints:
EqClockTpe
FiniteClockTpe
ShowClockTpe
clockCode : ClockTpe->Bits32
Totality: total
Visibility: export
recordFlags : Type
  Flags describing the behavior of an timer file descriptor.

Several flags can be combined using `(<+>)`.

Totality: total
Visibility: export
Constructor: 
F : Bits32->Flags

Projection: 
.value : Flags->Bits32

Hints:
EqFlags
MonoidFlags
OrdFlags
SemigroupFlags
ShowFlags
flagCode : Flags->Bits32
Totality: total
Visibility: export
TFD_CLOEXEC : Flags
Totality: total
Visibility: export
TFD_NONBLOCK : Flags
  Sets the file descriptor to non-blocking: Reading from
an `TimerFD` via `readTimer` will usually block the calling thread
unless the file descriptor's timer has already expired at least
once.

With this flag being set, `readTimer` will never block but will return
`Left EAGAIN` in case of a still running timer.

Totality: total
Visibility: export
recordTimerFD : Type
  A timer file descriptor that can be monitored via `epoll`.

Totality: total
Visibility: public export
Constructor: 
TFD : Bits32->TimerFD

Projection: 
.file : TimerFD->Bits32

Hint: 
FileDescTimerFD
.file : TimerFD->Bits32
Totality: total
Visibility: public export
file : TimerFD->Bits32
Totality: total
Visibility: public export
timerCreate : ClockTpe->Flags->PrimIOTimerFD
  Creates a new `TimerFD` with the given initial value a flags set.

Totality: total
Visibility: export
readTimer : TimerFD->PrimIO (EitherEpollErrBits64)
  Reads the current value from a timer file descriptor, returning the
number of times the timer has expired since the last read.

This will block the calling thread unless the `TFD_NONBLOCK` flag
was set.

Totality: total
Visibility: export
setTime : TimerFD->ClockDuration->PrimIO ()
Totality: total
Visibility: export
withTimer : ClockTpe->Flags-> (TimerFD->PrimIOa) ->PrimIOa
  Creates and finally closes and event file descriptor.

Totality: total
Visibility: export
zero : ClockDuration
  The zero duration.

Totality: total
Visibility: export
.s : Nat->ClockDuration
  Creates a duration of `n` seconds

Totality: total
Visibility: export
.ns : Nat->ClockDuration
  Creates a duration of `n` nanoseconds

Totality: total
Visibility: export
.us : Nat->ClockDuration
  Creates a duration of `n` microseconds

Totality: total
Visibility: export
.ms : Nat->ClockDuration
  Creates a duration of `n` milliseconds

Totality: total
Visibility: export