#define _UTIL_VMA_H
#include <stdint.h>
+#include <stdio.h>
#include "list.h"
struct util_vma_heap {
struct list_head holes;
+
+ /** If true, util_vma_heap_alloc will prefer high addresses
+ *
+ * Default is true.
+ */
+ bool alloc_high;
};
void util_vma_heap_init(struct util_vma_heap *heap,
void util_vma_heap_free(struct util_vma_heap *heap,
uint64_t offset, uint64_t size);
+void util_vma_heap_print(struct util_vma_heap *heap, FILE *fp,
+ const char *tab, uint64_t total_size);
+
#ifdef __cplusplus
} /* extern C */
#endif