Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755430AbXEFHut (ORCPT ); Sun, 6 May 2007 03:50:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755459AbXEFHut (ORCPT ); Sun, 6 May 2007 03:50:49 -0400 Received: from nz-out-0506.google.com ([64.233.162.226]:43206 "EHLO nz-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755430AbXEFHus (ORCPT ); Sun, 6 May 2007 03:50:48 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lOvNqXBWpQMjj1Vg9nYD2EEoJnigWgHLn8DHQcOxDIQo0RL5c1vKPW8upLwQYw9JBnX0wqTjDX++fMWcjkfGyjGmBsrKh/jzSVJGxY8ll/d3TgFbDVN+ixxhcjCuzd0s8Cgk0MK0eICE/Abz7jyuh2gcav8p8QUHk4uM0TFxHv8= Message-ID: Date: Sun, 6 May 2007 00:50:47 -0700 From: "Ulrich Drepper" To: "Davide Libenzi" Subject: Re: [patch 14/22] pollfs: pollable futex Cc: "Davi Arnaut" , "Eric Dumazet" , "Andrew Morton" , "Linus Torvalds" , "Linux Kernel Mailing List" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070502052235.914764000@haxent.com.br> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1377 Lines: 30 On 5/5/07, Davide Libenzi wrote: > But we have our own *sane* version of WaitForMultipleObjects, and it's > called poll(2). No, we don't. Don't start all over again. The interface of poll it to primitive. See the kevent code, each record is, IIRC, 16 bytes in size to return more data. For poll you only have bits. > Now, considering that POSIX is the backbone of Linux (and *nix in > general), and considering that we certainly cannot drop existing POSIX > semantics, where the lagacy code will come from? The legacy part comes from all this extra "make into a file descriptor" stuff which is new, not needed now and especially not when a full solution is available. > I really do not understand your point. You're too smart to not appreciate > the beauty and the simmetry of objects that responds to a common interface > (our files, win32 handles), and that fits our existing kernel infrastructure. You're blinded by this symmetry. Not everything that looks like a good fit is a good idea. This is one case. Get over it, poll is not powerful enough to serve as the unifying event mechanism. - 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/