Lines Matching refs:pool
7 static const char *pool_data_stack_get_name(pool_t pool);
8 static void pool_data_stack_ref(pool_t pool);
9 static void pool_data_stack_unref(pool_t *pool);
10 static void *pool_data_stack_malloc(pool_t pool, size_t size);
11 static void pool_data_stack_free(pool_t pool, void *mem);
12 static void *pool_data_stack_realloc(pool_t pool, void *mem,
14 static void pool_data_stack_clear(pool_t pool);
15 static size_t pool_data_stack_get_max_easy_alloc_size(pool_t pool);
32 static const struct pool static_data_stack_pool = {
40 struct pool pool;
51 dpool->pool = static_data_stack_pool;
54 return &dpool->pool;
57 static const char *pool_data_stack_get_name(pool_t pool ATTR_UNUSED)
62 static void pool_data_stack_ref(pool_t pool)
64 struct datastack_pool *dpool = (struct datastack_pool *) pool;
72 static void pool_data_stack_unref(pool_t *pool)
74 struct datastack_pool *dpool = (struct datastack_pool *)*pool;
82 *pool = NULL;
85 static void *pool_data_stack_malloc(pool_t pool ATTR_UNUSED, size_t size)
87 struct datastack_pool *dpool = (struct datastack_pool *) pool;
98 static void pool_data_stack_free(pool_t pool, void *mem ATTR_UNUSED)
100 struct datastack_pool *dpool = (struct datastack_pool *) pool;
106 static void *pool_data_stack_realloc(pool_t pool, void *mem,
109 struct datastack_pool *dpool = (struct datastack_pool *) pool;
120 return pool_data_stack_malloc(pool, new_size);
135 static void pool_data_stack_clear(pool_t pool ATTR_UNUSED)
140 pool_data_stack_get_max_easy_alloc_size(pool_t pool ATTR_UNUSED)