Re: [rfc -tip] lib,rb-tree - introduce rb_for_each helper

From: Peter Zijlstra
Date: Sun Jul 12 2009 - 09:20:18 EST


On Sun, 2009-07-12 at 00:29 +0200, Frederic Weisbecker wrote:
> #define rb_for_each_entry(tpos, pos, root, memb) \
> for (pos = rb_first(root); pos && tpos = rb_entry(pos, typeof(*tpos), memb); \
> pos = rb_next(pos->memb, typeof(*pos), memb))

if you really want to do this, then at least call it:
for_each_rb_entry().

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