Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 29 Oct 2002 23:13:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 29 Oct 2002 23:13:18 -0500 Received: from x35.xmailserver.org ([208.129.208.51]:27807 "EHLO x35.xmailserver.org") by vger.kernel.org with ESMTP id ; Tue, 29 Oct 2002 23:13:17 -0500 X-AuthUser: davidel@xmailserver.org Date: Tue, 29 Oct 2002 20:29:11 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@blue1.dev.mcafeelabs.com To: Andrew Morton cc: Linux Kernel Mailing List Subject: Re: [patch] sys_epoll 0.14 ... In-Reply-To: <3DBF5C1C.5ACD296A@digeo.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: 1138 Lines: 44 On Tue, 29 Oct 2002, Andrew Morton wrote: > They are a reasonable addition to the list library. They > should be implemented as: > > /* > * kernel-doc description goes here > */ > static inline struct list_head *list_first(struct list_head *list) > { > if (list_empty(list)) > return NULL; > return list->next; > } > > But it shouldn't be quietly snuck in as part of epoll. Everyone in > the world uses list.h. > > Given that they are used in just a handful of places in epoll and nowhere > else in the kernel it is a little hard to justify adding them. > > Unless people leap out and say "I've always wanted one of them" it would > be best to redo epoll to use > > while (!list_empty(list)) { > item = list_entry(list, ...); > list_del(item->list); > ... > } > > or one of the other eighty-seven list helpers which we already have. Ok, let's drop them off ... - 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/