Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 18 Nov 2002 20:57:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 18 Nov 2002 20:57:13 -0500 Received: from x35.xmailserver.org ([208.129.208.51]:62092 "EHLO x35.xmailserver.org") by vger.kernel.org with ESMTP id ; Mon, 18 Nov 2002 20:57:12 -0500 X-AuthUser: davidel@xmailserver.org Date: Mon, 18 Nov 2002 18:04:39 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@blue1.dev.mcafeelabs.com To: Dan Kegel cc: Linux Kernel Mailing List Subject: Re: [rfc] epoll interface change and glibc bits ... In-Reply-To: <3DD99D33.1030900@kegel.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1654 Lines: 43 On Mon, 18 Nov 2002, Dan Kegel wrote: > Davide Libenzi wrote: > > On Mon, 18 Nov 2002, Dan Kegel wrote: > >>Second, epoll_ctl(2) doesn't define the meaning of the > >>event mask. It should give the allowed bits and define > >>their meanings. If we use the traditional POLLIN etc, we > >>can say > >> POLLIN - the fd has become ready for reading > >> POLLOUT - the fd has become ready for writing > >> Note: If epoll tells you e.g. POLLIN, it means that > >> poll will tell you the same thing, > >> since poll gives the current status, > >> and epoll gives changes in status. > > > > > > I will have to change man pages also to fit EPOLL* definitions. > > IMHO changing from using POLLIN etc. to EPOLLIN > will obscure the essential relationship between > epoll and poll (namely, that the epoll bits > are the time derivative of the poll bits). > > I would prefer to continue using POLLIN, etc. Dan, at the beginning I had the same thought as yours. Now I sort of changed my mind. The epoll interface is basically seeing the light in these days and even if right now it uses f_op->poll(), tomorrow we don't know. To avoid painful code changes later is IMHO better to define EPOLL* bits right now. They'll be the same of the POLL* bits but will enable epoll to be independent from poll.h bits. At least to the outside world. Same for the event structure. - Davide - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/