Idris2Doc : System.Linux.Eventfd

System.Linux.Eventfd

(source)

Reexports

importpublic Data.C.Ptr
importpublic System.Linux.Eventfd.Eventfd
importpublic System.Linux.Eventfd.Flags
importpublic System.Posix.File

Definitions

eventfd : HasErrnoes=>EIO1f=>Bits64->EventfdFlags->fesEventfd
  Opens a new `eventfd` file descriptor writing the given value
to it.

Notes:
* An `eventfd` should be closed using `close` just like other file
descriptors.
* In general, use `readEventfd` instead of the `read` functions
from `System.Posix.File` to read from an `eventfd`.
* Likewise, use `writeEventfd` instead of `System.Posix.File.write`

Totality: total
Visibility: export
writeEventfd : HasErrnoes=>EIO1f=>Eventfd->Bits64->fes ()
  Writes a value to the given event file descriptor.

Totality: total
Visibility: export
readEventfd : HasErrnoes=>EIO1f=>Eventfd->fesBits64
  Reads the current value from an event file descriptor.

If the current value is 0, this will block until a non-zero value
is ready. If opened with the `EFD_NONBLOCK` flag, this fails with `EAGAIN`
if no value is ready. If opened with the `EFD_SEMAPHORE` flag, this will
return 1 if a value is ready and reduce the value by 1.

Totality: total
Visibility: export