Re: [PATCH] ulist: generic data structure to build unique lists

From: Arne Jansen
Date: Thu Oct 20 2011 - 12:56:29 EST


On 20.10.2011 16:50, Arne Jansen wrote:

+ * This function is used to iterate an ulist. The iteration is started with
+ * @prev = %NULL. It returns the next element from the ulist or %NULL when the
+ * end is reached. No guarantee is made with respect to the order in which
+ * the elements are returned. They might neither be returned in order of
+ * addition nor in ascending order.
+ * It is allowed to call ulist_add during an enumeration. Newly added items
+ * are guaranteed to show up in the running enumeration.

Thinking twice about it this guarantee most probably implies that the
items are returned in order of addition. This is currently the case.

+ */
--
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/