]> git.ozlabs.org Git - ccan/blob - ccan/alloc/tiny.h
alloc: reduce number of large pages to 256.
[ccan] / ccan / alloc / tiny.h
1 #ifndef CCAN_TINY_H
2 #define CCAN_TINY_H
3 #include <stdbool.h>
4 #include <stdio.h>
5
6 void tiny_alloc_init(void *pool, unsigned long poolsize);
7 void *tiny_alloc_get(void *pool, unsigned long poolsize,
8                      unsigned long size, unsigned long align);
9 void tiny_alloc_free(void *pool, unsigned long poolsize, void *free);
10 unsigned long tiny_alloc_size(void *pool, unsigned long poolsize, void *p);
11 bool tiny_alloc_check(void *pool, unsigned long poolsize);
12 void tiny_alloc_visualize(FILE *out, void *pool, unsigned long poolsize);
13
14 #endif /* CCAN_TINY_H */