Searched refs:pool (Results 1 – 2 of 2) sorted by relevance
57 static inline void *pool_alloc_n(struct object_pool *pool, size_t count) in pool_alloc_n() argument59 if ((pool->used + count) > pool->capacity) { in pool_alloc_n()61 count, pool->capacity - pool->used); in pool_alloc_n()65 void *obj = (char *)(pool->objects) + (pool->obj_size * pool->used); in pool_alloc_n()66 pool->used += count; in pool_alloc_n()74 static inline void *pool_alloc(struct object_pool *pool) in pool_alloc() argument76 return pool_alloc_n(pool, 1U); in pool_alloc()
197 does not fit within this pre-allocated pool of memory.
Completed in 3 milliseconds