summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-07-07 07:32:33 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-07-07 09:07:10 +0200
commit573f05ef42c02c9ecb1348bc9a8aec68b9b79d02 (patch)
treec65fd10ebb191a6a89c8d84ed20542f73e03e11b
parent6351139b47c39d80f65b3bfbcc02ff240bfa9eec (diff)
epoll_ctl.2: Document EPOLLWAKEUP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/epoll_ctl.220
1 files changed, 20 insertions, 0 deletions
diff --git a/man2/epoll_ctl.2 b/man2/epoll_ctl.2
index 1fbe74eee..6388f1919 100644
--- a/man2/epoll_ctl.2
+++ b/man2/epoll_ctl.2
@@ -154,6 +154,26 @@ The user must call
with
.B EPOLL_CTL_MOD
to rearm the file descriptor with a new event mask.
+.TP
+.BR EPOLLWAKEUP " (since Linux 3.5)"
+If
+.B EPOLLONESHOT
+and
+.B EPOLLET
+are clear and the process has the
+.B CAP_BLOCK_SUSPEND
+.BR capability (7),
+ensure that the system does not enter "suspend" or
+"hibernate" while this event is pending or being processed.
+The event is considered as being "processed" from when it returned by
+a call to
+.BR epoll_wait (2)
+until the next call to
+.BR epoll_wait (2)
+on the same
+.BR epoll (7)
+file descriptor.
+.\" commit 4d7e30d98939a0340022ccd49325a3d70f7e0238
.SH RETURN VALUE
When successful,
.BR epoll_ctl ()