rbtree: add postorder iteration functions
[deliverable/linux.git] / include / linux / rbtree.h
index 0022c1bb1e26398c9db767a8eebc4fa153bff559..c467151e99509997fa8b9a14ee53c1cd4f9765b8 100644 (file)
@@ -68,6 +68,10 @@ extern struct rb_node *rb_prev(const struct rb_node *);
 extern struct rb_node *rb_first(const struct rb_root *);
 extern struct rb_node *rb_last(const struct rb_root *);
 
+/* Postorder iteration - always visit the parent after its children */
+extern struct rb_node *rb_first_postorder(const struct rb_root *);
+extern struct rb_node *rb_next_postorder(const struct rb_node *);
+
 /* Fast replacement of a single node without remove/rebalance/add/rebalance */
 extern void rb_replace_node(struct rb_node *victim, struct rb_node *new, 
                            struct rb_root *root);
This page took 0.032827 seconds and 5 git commands to generate.