Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ manx kevent
 EVFILT_TIMER     Establishes an interval timer with the data timer iden-
                  tified by ident.  When adding a timer, data specifies
                  the timeout period and fflags can be set to one of the
                  following:

                  NOTE_SECONDS   data is in seconds

                  NOTE_USECONDS  data is in microseconds

                  NOTE_NSECONDS  data is in nanoseconds

                  NOTE_ABSOLUTE  data is an absolute timeout

                  NOTE_CRITICAL  system makes a best effort to fire this
                                 timer as scheduled.

                  NOTE_BACKGROUND
                                 system has extra leeway to coalesce this
                                 timer.

                  NOTE_LEEWAY    ext[1] holds user-supplied slop in dead-
                                 line for timer coalescing.

                  If fflags is not set, the default is milliseconds. The
                  timer will be periodic unless EV_ONESHOT is specified.
                  On return, data contains the number of times the timeout
                  has expired since the last call to kevent(), kevent64()
                  or kevent_qos().

                  This filter automatically sets the EV_CLEAR flag inter-
                  nally.

 ----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment