TIMERFD(7) | Standards, Environments, and Macros | TIMERFD(7) |
timerfd
—
Linux-compatible timer notification facility
#include
<sys/timerfd.h>
timerfd
is a Linux-borne facility for
creating POSIX timers and receiving their subsequent events via a file
descriptor. The facility itself is arguably unnecessary: portable code can
either use the timeout value present in
poll(2) /
port_get(3C) or -- if this is
deemed of unacceptably poor resolution -- create a POSIX timer via
timer_create(3C) and use the
resulting signal to induce an
EINTR to
polling threads. (For code that need not be portable, the
SIGEV_PORT
signal notification allows for explicit, event-oriented timer notification
to be sent to a specified port; see
signal.h(3HEAD) for details.)
This facility therefore exists only to accommodate Linux-borne applications
and binaries; it is compatible with its Linux antecedent in both binary
interface and in semantics.
timerfd_create(3C), timerfd_gettime(3C), timerfd_settime(3C)
February 23, 2015 | OmniOS |