Re: single linked list header in kernel?

From: Chris Friesen
Date: Wed Oct 13 2004 - 10:01:54 EST


Matthias Urlichs wrote:
Hi, Chris Friesen wrote:

Is there any plan to put a singly-linked list implementation into the kernel? I mean sure its simple, but we've got the double-linked one there...

What would you use one for? Just putting stuff in the kernel because it's
not there yet is nonsense.

There are various places where there are open-coded single-linked list implementations. This would just unify them to a single implementation. On a previous occasion, someone estimated 42 instances where slist_for_each() could be used in net/core alone.

Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/