Module Linux_ext.Epoll.Flags

module Flags: sig .. end

type t 
An Epoll.Flags.t is an immutable set of flags for which one can register interest for a file descriptor. It is implemented as a bitmask, and so all operations (+, -, etc.) are constant time with no allocation.

sexp_of_t produces a human-readable list of bits, e.g. "(in out)".

include Interfaces.Intable
val equal : t -> t -> bool
val none : t
val in_ : t
val out : t
val pri : t
val err : t
val hup : t
val et : t
val oneshot : t
val (+) : t -> t -> t
val (-) : t -> t -> t
val flag_and : t -> t -> t
val flag_not : t -> t
val do_intersect : t -> t -> bool
The handling of sets of bit flags here is indeed a departure from the typical convention of lists of variants, but has some advantages and is likely to be used in the future. Please consider carrying these set testing names through if you adopt this bit flag style.
val are_disjoint : t -> t -> bool
val sexp_of_t : t -> Sexplib.Sexp.t

The handling of sets of bit flags here is indeed a departure from the typical convention of lists of variants, but has some advantages and is likely to be used in the future. Please consider carrying these set testing names through if you adopt this bit flag style.