Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 20 Nov 2002 18:11:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 20 Nov 2002 18:11:50 -0500 Received: from x35.xmailserver.org ([208.129.208.51]:30084 "EHLO x35.xmailserver.org") by vger.kernel.org with ESMTP id ; Wed, 20 Nov 2002 18:11:48 -0500 X-AuthUser: davidel@xmailserver.org Date: Wed, 20 Nov 2002 15:19:30 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@blue1.dev.mcafeelabs.com To: Mark Mielke cc: Jamie Lokier , Linux Kernel Mailing List Subject: Re: [rfc] epoll interface change and glibc bits ... In-Reply-To: <20021120080153.GB26018@mark.mielke.cc> 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: 1175 Lines: 38 On Wed, 20 Nov 2002, Mark Mielke wrote: > On Tue, Nov 19, 2002 at 08:04:33PM -0800, Davide Libenzi wrote: > > On Wed, 20 Nov 2002, Jamie Lokier wrote: > > > The `fd' field, on the other hand, is not guaranteed to correspond > > > with the correct file descriptor number. So.... perhaps the structure > > > should contain an `obj' field and _no_ `fd' field? > > > ... > > It's OK. I agree. We can remove the fd from inside the structure and have : > > struct epoll_event { > > unsigned short events; > > unsigned short revents; > > __uint64_t obj; > > }; > > Forget any argument I had against removing 'fd'. This sounds good. > > Perhaps 'obj' should be named 'userdata'? > > struct epoll_event { > unsigned short events; > unsigned short revents; > __uint64_t userdata; > }; Do we want to have a union instead of a direct 64bit int ? - 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/