From patchwork Wed Jul 9 03:37:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: NeilBrown X-Patchwork-Id: 4511221 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D0FCC9F39B for ; Wed, 9 Jul 2014 03:38:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 285BE201EC for ; Wed, 9 Jul 2014 03:38:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9B75E202F0 for ; Wed, 9 Jul 2014 03:38:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753276AbaGIDhz (ORCPT ); Tue, 8 Jul 2014 23:37:55 -0400 Received: from cantor2.suse.de ([195.135.220.15]:35480 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752996AbaGIDhy (ORCPT ); Tue, 8 Jul 2014 23:37:54 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D708CAC05; Wed, 9 Jul 2014 03:37:51 +0000 (UTC) Date: Wed, 9 Jul 2014 13:37:46 +1000 From: NeilBrown To: "Michael Kerrisk (man-pages)" Cc: linux-man@vger.kernel.org, Arve =?UTF-8?B?SGrDuG5uZXbDpWc=?= , "Rafael J. Wysocki" , linux-pm@vger.kernel.org Subject: [PATCH] epoll_ctl.2: minor clarification concerning when a WAKEUP event is "processes" Message-ID: <20140709133746.70d0dffb@notabene.brown> In-Reply-To: <20140707210157.1aa38ed0@notabene.brown> References: <20140706190351.423e9a93@notabene.brown> <53BA4244.30502@gmail.com> <20140707210157.1aa38ed0@notabene.brown> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_TVD_MIME_EPI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I guess it should be obvious, but it never hurts to be explicit. When the epoll file descriptor is closed all events are assumed to be "processed". Also if the event is removed with EPOLL_CTL_DEL or the EPOLLWAKEUP flag is removed with EPOLL_CTL_MOD the event will be "processed". Signed-off-by: NeilBrown Acked-by: Rafael J. Wysocki diff --git a/man2/epoll_ctl.2 b/man2/epoll_ctl.2 index 2936bc7e97f7..74a09b6c276b 100644 --- a/man2/epoll_ctl.2 +++ b/man2/epoll_ctl.2 @@ -173,7 +173,14 @@ until the next call to .BR epoll_wait (2) on the same .BR epoll (7) -file descriptor. +file descriptor, +the closure of that file descriptor, +the removal of the event file descriptor with +.BR EPOLL_CTL_DEL , +or the clearing of +.B EPOLLWAKEUP +for the event file descriptor with +.BR EPOLL_CTL_MOD . See also BUGS. .SH RETURN VALUE When successful,