Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 11 Mar 2003 13:08:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 11 Mar 2003 13:08:07 -0500 Received: from x35.xmailserver.org ([208.129.208.51]:6287 "EHLO x35.xmailserver.org") by vger.kernel.org with ESMTP id ; Tue, 11 Mar 2003 13:08:06 -0500 X-AuthUser: davidel@xmailserver.org Date: Tue, 11 Mar 2003 10:27:53 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@blue1.dev.mcafeelabs.com To: Jamie Lokier cc: Linux Kernel Mailing List , Hanna Linder , Janet Morgan , Marius Aamodt Eriksen , Shailabh Nagar , Niels Provos Subject: Re: [patch, rfc] lt-epoll ( level triggered epoll ) ... In-Reply-To: <20030311142447.GA14931@bjl1.jlokier.co.uk> Message-ID: References: <20030311142447.GA14931@bjl1.jlokier.co.uk> 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: 1325 Lines: 38 On Tue, 11 Mar 2003, Jamie Lokier wrote: > > LT epoll you simply use epoll_ctl(EPOLL_CTL_MOD) to switch between > > EPOLLIN and EPOLLOUT. > > ?? Is this poorly worded? EPOLLIN and EPOLLOUT are independent events, > aren't they? Yes, they're. But since ET epoll has the edge feature that filter events, you can safely register both events and insertion time *if you want*. > > In front of this considerations we > > have three options that I can think : > > > > 1) We leave epoll as is ( ET ) > > 2) We apply the patch that will make epoll LT > > 3) We add a parameter to epoll_create() to fix the interface behaviour at > > creation time ( small change on the current patch ) > > Is it not better to (4) select the behaviour when an fd interest is > registered? I think this is cleanest, if the code is not too > horrible. The code does not change much ( I think about 10 lines of code :) ), and I'm for this option. That has also the other advantage to not change the API parameters. Obviously man pages will have to be reviewed, but this is another story :) - 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/