Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


added for_each macro to redblack tree
Jack Lange [Mon, 14 Sep 2009 19:09:51 +0000 (14:09 -0500)]
palacios/include/palacios/vmm_rbtree.h

index bcc88d7..1597c0a 100644 (file)
@@ -169,6 +169,11 @@ static inline void rb_link_node(struct rb_node * node, struct rb_node * parent,
     *rb_link = node;
 }
 
+#define v3_rb_for_each_entry(pos, root, member)                                \
+    for (pos = rb_entry(v3_rb_first(root), typeof(*pos), member);      \
+        &pos->member != v3_rb_last(root);                              \
+        pos = rb_entry(v3_rb_next(&(pos->member)), typeof(*pos), member))
+
 
 #endif