Hi David,

    Please consider pulling from:

master.kernel.org:/pub/scm/linux/kernel/git/acme/net-2.6.17.git

Best Regards,

- Arnaldo
tree dd63ed037c6999ea5382a19b95bddd530d10a49f
parent f46cb510ee1e527b0d6b8a8c13a757c8355d08fd
author Arnaldo Carvalho de Melo <[EMAIL PROTECTED]> 1138971659 -0200
committer Arnaldo Carvalho de Melo <[EMAIL PROTECTED]> 1138971659 -0200

[LIST]: Introduce list_for_each_entry_from

For iterating over list of given type continuing from existing point.

Signed-off-by: Arnaldo Carvalho de Melo <[EMAIL PROTECTED]>

------------------------------------------------------------------------------

 list.h |   11 +++++++++++
 1 file changed, 11 insertions(+)

------------------------------------------------------------------------------

diff --git a/include/linux/list.h b/include/linux/list.h
index dffc0fe..5bb5aab 100644
--- a/include/linux/list.h
+++ b/include/linux/list.h
@@ -409,6 +409,17 @@ static inline void list_splice_init(stru
 	     pos = list_entry(pos->member.next, typeof(*pos), member))
 
 /**
+ * list_for_each_entry_from -	iterate over list of given type
+ *			continuing from existing point
+ * @pos:	the type * to use as a loop counter.
+ * @head:	the head for your list.
+ * @member:	the name of the list_struct within the struct.
+ */
+#define list_for_each_entry_from(pos, head, member) 			\
+	for (; prefetch(pos->member.next), &pos->member != (head);	\
+	     pos = list_entry(pos->member.next, typeof(*pos), member))
+
+/**
  * list_for_each_entry_safe - iterate over list of given type safe against removal of list entry
  * @pos:	the type * to use as a loop counter.
  * @n:		another type * to use as temporary storage

Reply via email to