X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fbuddy.h;h=e0ef86dfd1f79ec1d27ed07dbeddeea2885484c6;hb=5ef0e92d52b2698fd2706cd7cfc2b01526a6e319;hp=4781cfc5afc9d07bbd949e4fc5dee7e432b4cb7f;hpb=82071a7f5f0b18fbf1a4adc2a37fed1624572a79;p=palacios.git diff --git a/linux_module/buddy.h b/linux_module/buddy.h index 4781cfc..e0ef86d 100644 --- a/linux_module/buddy.h +++ b/linux_module/buddy.h @@ -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 @@ -102,7 +103,7 @@ buddy_alloc(struct buddy_memzone * zone, /* Free a physical address */ -extern void +extern int buddy_free(struct buddy_memzone * zone, uintptr_t addr, unsigned long order);