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.


symbiotic module updates
[palacios-OLD.git] / palacios / include / palacios / vmm_list.h
index f44933a..f1e878f 100644 (file)
@@ -263,6 +263,21 @@ static inline void list_splice_init(struct list_head *list,
     
 
 
+/** 
+ * list_next_entry -- get the struct for the next entry in a list
+ * @ptr:  current list entry
+ * @type: type of the struct this is embedded in
+ * @member: name of the list struct within the struct
+ */
+#define list_next_entry(node, type, member)                    \
+    ({                                                         \
+       type * next = NULL;                                     \
+       if ((node)->next != (node)) {                           \
+           next = list_entry((node)->next, type, member);      \
+       }                                                       \
+       next;                                                   \
+    })
+
 
 /**
  * list_for_each       -       iterate over a list