> @@ -108,3 +108,43 @@ void *mem_pool_calloc(struct mem_pool *mem_pool, size_t
> count, size_t size)
> memset(r, 0, len);
> return r;
> }
> +
> +int mem_pool_contains(struct mem_pool *mem_pool, void *mem)
> +{
> + struct mp_block *p;
> +
> + /* Check if memory is
Add functions for:
- combining two memory pools
- determining if a memory address is within the range managed by a
memory pool
These functions will be used by future commits.
Signed-off-by: Jameson Miller
---
mem-pool.c | 40
2 matches
Mail list logo