blob: a6829901aa3651d6cc4202ac5a34f5466d1b36ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
'\" te
.\" Copyright (c) 2015, Joyent, Inc. All Rights Reserved.
.\" This file and its contents are supplied under the terms of the
.\" Common Development and Distribution License ("CDDL"), version 1.0.
.\" You may only use this file in accordance with the terms of version
.\" 1.0 of the CDDL.
.\"
.\" A full copy of the text of the CDDL should have accompanied this
.\" source. A copy of the CDDL is also available via the Internet at
.\" http://www.illumos.org/license/CDDL.
.TH TIMERFD 5 "Feb 23, 2015"
.SH NAME
timerfd \- Linux-compatible timer notification facility
.SH SYNOPSIS
.LP
.nf
#include <sys/timerfd.h>
.fi
.SH DESCRIPTION
.sp
.LP
\fBtimerfd\fR 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
\fBpoll\fR(2)/\fBport_get\fR(3C)/\fBepoll_wait\fR(3C) or -- if this
is deemed of unacceptably poor resolution -- create a POSIX timer
via \fBtimer_create\fR(3C) and use the resulting signal to induce an
\fBEINTR\fR to polling threads. (For code that need not be
portable, the \fBSIGEV_PORT\fR signal notification allows for explicit,
event-oriented timer notification to be sent to a specified port;
see \fBsignal.h\fR(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.
.SH SEE ALSO
.sp
.LP
\fBtimerfd_create\fR(3C), \fBtimerfd_gettime\fR(3C), \fBtimerfd_settime\fR(3C)
|