lib/list: Add list_for_each_entry_safe
authorJeremy Kerr <jk@ozlabs.org>
Tue, 16 Apr 2013 03:39:59 +0000 (11:39 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 16 Apr 2013 04:57:15 +0000 (12:57 +0800)
commit7b396a45d43cc464539cc25799ddda3a27339bd8
treecf26e66216eddc8786a1fb6f1ec3496a3edb41a0
parent12a5c9153ce95ddde7fb14eaba9d779933a3637c
lib/list: Add list_for_each_entry_safe

Add a list iterator that is safe against deletion of the current
element.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
lib/list/list.h