Re: [patch] sys_epoll 0.14 ...

From: Davide Libenzi (davidel@xmailserver.org)
Date: Tue Oct 29 2002 - 23:29:11 EST


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/



This archive was generated by hypermail 2b29 : Thu Oct 31 2002 - 22:00:46 EST