summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2017-07-31 22:36:03 +0000
committerasomers <asomers@FreeBSD.org>2017-07-31 22:36:03 +0000
commit2b7b4e5952e98756d2e4d3e2b5e6c642f8571ad1 (patch)
treec946b6b57c1105960dc2b50853af30b6e782a06c /lib/libc
parentec7cbea21848f8e61dc1b2954267c47153b2ca2a (diff)
downloadFreeBSD-src-2b7b4e5952e98756d2e4d3e2b5e6c642f8571ad1.zip
FreeBSD-src-2b7b4e5952e98756d2e4d3e2b5e6c642f8571ad1.tar.gz
Clarify usage of aio(4) with kqueue(2)
Reviewed by: jhb MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D11299
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/kqueue.237
1 files changed, 11 insertions, 26 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index 2bff471..1044c3f 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 3, 2016
+.Dd June 22, 2017
.Dt KQUEUE 2
.Os
.Sh NAME
@@ -327,33 +327,18 @@ identical to the
.Dv EVFILT_READ
case.
.It Dv EVFILT_AIO
-The sigevent portion of the AIO request is filled in, with
-.Va sigev_notify_kqueue
-containing the descriptor of the kqueue that the event should
-be attached to,
-.Va sigev_notify_kevent_flags
-containing the kevent flags which should be
-.Dv EV_ONESHOT ,
-.Dv EV_CLEAR
-or
-.Dv EV_DISPATCH ,
-.Va sigev_value
-containing the udata value, and
-.Va sigev_notify
-set to
-.Dv SIGEV_KEVENT .
-When the
-.Fn aio_*
-system call is made, the event will be registered
-with the specified kqueue, and the
-.Va ident
-argument set to the
-.Fa struct aiocb
-returned by the
-.Fn aio_*
-system call.
+Events for this filter are not registered with
+.Fn kevent
+directly but are registered via the
+.Va aio_sigevent
+member of an asychronous I/O request when it is scheduled via an asychronous I/O
+system call such as
+.Fn aio_read .
The filter returns under the same conditions as
.Fn aio_error .
+For more details on this filter see
+.Xr sigevent 3 and
+.Xr aio 4 .
.It Dv EVFILT_VNODE
Takes a file descriptor as the identifier and the events to watch for in
.Va fflags ,
OpenPOWER on IntegriCloud