Skip to content

Instantly share code, notes, and snippets.

@dylib
Created May 20, 2016 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylib/1e23a517ef3f9f1dd786584ca7b794fe to your computer and use it in GitHub Desktop.
Save dylib/1e23a517ef3f9f1dd786584ca7b794fe to your computer and use it in GitHub Desktop.
$ 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