Lines Matching defs:list

34 /** A list of free memory from which new buckets or private bucket
46 apr_bucket_alloc_t *list = data;
48 apr_allocator_free(list->allocator, list->blocks);
51 if (list->pool && list->allocator != apr_pool_allocator_get(list->pool)) {
52 apr_allocator_destroy(list->allocator);
62 apr_bucket_alloc_t *list;
75 list = apr_bucket_alloc_create_ex(allocator);
76 if (list == NULL) {
82 list->pool = p;
83 apr_pool_cleanup_register(list->pool, list, alloc_cleanup,
86 return list;
92 apr_bucket_alloc_t *list;
99 list = (apr_bucket_alloc_t *)block->first_avail;
100 list->pool = NULL;
101 list->allocator = allocator;
102 list->freelist = NULL;
103 list->blocks = block;
104 block->first_avail += APR_ALIGN_DEFAULT(sizeof(*list));
106 return list;
109 APU_DECLARE_NONSTD(void) apr_bucket_alloc_destroy(apr_bucket_alloc_t *list)
111 if (list->pool) {
112 apr_pool_cleanup_kill(list->pool, list, alloc_cleanup);
115 apr_allocator_free(list->allocator, list->blocks);
118 if (list->pool && list->allocator != apr_pool_allocator_get(list->pool)) {
119 apr_allocator_destroy(list->allocator);
125 apr_bucket_alloc_t *list)
128 apr_memnode_t *active = list->blocks;
133 if (list->freelist) {
134 node = list->freelist;
135 list->freelist = node->next;
140 list->blocks = apr_allocator_alloc(list->allocator, ALLOC_AMT);
141 if (!list->blocks) {
142 list->blocks = active;
145 list->blocks->next = active;
146 active = list->blocks;
150 node->alloc = list;
157 apr_memnode_t *memnode = apr_allocator_alloc(list->allocator, size);
162 node->alloc = list;
175 apr_bucket_alloc_t *list = node->alloc;
176 node_header_t *curr = list->freelist;
192 apr_bucket_alloc_t *list = node->alloc;
196 node->next = list->freelist;
197 list->freelist = node;
200 apr_allocator_free(list->allocator, node->memnode);