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.


Fixed spurious warning when memory block size is overrriden
[palacios.git] / linux_module / buddy.h
index 34742e1..1017a3a 100644 (file)
@@ -73,7 +73,8 @@ buddy_init(unsigned long pool_order,
           unsigned int node_id);
 
 extern void 
-buddy_deinit(struct buddy_memzone * zone);
+buddy_deinit(struct buddy_memzone * zone,
+            int (*free_callback)(void *user_metadata));
 
 /* Add pool at given physical address */
 extern int 
@@ -91,10 +92,14 @@ buddy_remove_pool(struct buddy_memzone * zone,
                  void          **user_metadata);
 
 
+// constraint=0 => no constraints, otherwise bitmask of:
+#define LWK_BUDDY_CONSTRAINT_4GB 0x1
+
 /* Allocate pages, returns physical address */
 extern uintptr_t 
 buddy_alloc(struct buddy_memzone * zone,
-           unsigned long order);
+           unsigned long order,
+           int constraints);
 
 
 /* Free a physical address */