From 991c24c8815539bb08cc6545e725adb706650b53 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 20 May 2017 21:02:00 +0200 Subject: [PATCH] epoll_wait.2: Clarify semantics of returned 'data' field The returned 'data' is the 'data' most recently set via epoll_ctl(). Signed-off-by: Michael Kerrisk --- man2/epoll_wait.2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man2/epoll_wait.2 b/man2/epoll_wait.2 index f588d2d05..132e429af 100644 --- a/man2/epoll_wait.2 +++ b/man2/epoll_wait.2 @@ -103,9 +103,11 @@ struct epoll_event { The .I data -field of each returned structure contains the same data the user set via +field of each returned structure contains the same data as was specified +in the most recent call to .BR epoll_ctl (2) -.RB ( EPOLL_CTL_ADD ", " EPOLL_CTL_MOD ). +.RB ( EPOLL_CTL_ADD ", " EPOLL_CTL_MOD ) +for the corresponding open file description. The .I events field contains the returned event bit field.