Re: [PATCH v3 5/7] mem-pool: fill out functionality

2018-06-01 Thread Stefan Beller
> @@ -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

[PATCH v3 5/7] mem-pool: fill out functionality

2018-05-23 Thread Jameson Miller
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