summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-12-18 11:30:51 +0000
committerkib <kib@FreeBSD.org>2014-12-18 11:30:51 +0000
commit9f63b4b4d88d2e073f6c78989f8168c996d76ba7 (patch)
tree3c19f68edb62437de79cf5213befc685e705b5fa /lib
parent3abf5d53d81ee69ddbaeabfdfe7a6eb8a7c1d1d5 (diff)
downloadFreeBSD-src-9f63b4b4d88d2e073f6c78989f8168c996d76ba7.zip
FreeBSD-src-9f63b4b4d88d2e073f6c78989f8168c996d76ba7.tar.gz
MFC r268843 (by bapt):
Extend kqueue's EVFILT_TIMER by adding precision unit flags support.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/kqueue.223
1 files changed, 20 insertions, 3 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index ed3a8ad..47873fd 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd January 21, 2013
+.Dd July 18, 2014
.Dt KQUEUE 2
.Os
.Sh NAME
@@ -436,7 +436,7 @@ Establishes an arbitrary timer identified by
.Va ident .
When adding a timer,
.Va data
-specifies the timeout period in milliseconds.
+specifies the timeout period.
The timer will be periodic unless EV_ONESHOT is specified.
On return,
.Va data
@@ -447,8 +447,25 @@ There is a system wide limit on the number of timers
which is controlled by the
.Va kern.kq_calloutmax
sysctl.
+.Bl -tag -width XXNOTE_USECONDS
+.It Dv NOTE_SECONDS
+.Va data
+is in seconds.
+.It Dv NOTE_MSECONDS
+.Va data
+is in milliseconds.
+.It Dv NOTE_USECONDS
+.Va data
+is in microseconds.
+.It Dv NOTE_NSECONDS
+.Va data
+is in nanoseconds.
+.It
+.El
.Pp
-On return,
+If
+.Va fflags
+is not set, the default is milliseconds. On return,
.Va fflags
contains the events which triggered the filter.
.It Dv EVFILT_USER
OpenPOWER on IntegriCloud