• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/apr-util/buckets/

Lines Matching defs:list

35 /** A list of free memory from which new buckets or private bucket
47 apr_bucket_alloc_t *list = data;
49 apr_allocator_free(list->allocator, list->blocks);
52 if (list->pool && list->allocator != apr_pool_allocator_get(list->pool)) {
53 apr_allocator_destroy(list->allocator);
63 apr_bucket_alloc_t *list;
76 list = apr_bucket_alloc_create_ex(allocator);
77 if (list == NULL) {
83 list->pool = p;
84 apr_pool_cleanup_register(list->pool, list, alloc_cleanup,
87 return list;
93 apr_bucket_alloc_t *list;
100 list = (apr_bucket_alloc_t *)block->first_avail;
101 list->pool = NULL;
102 list->allocator = allocator;
103 list->freelist = NULL;
104 list->blocks = block;
105 block->first_avail += APR_ALIGN_DEFAULT(sizeof(*list));
107 return list;
110 APU_DECLARE_NONSTD(void) apr_bucket_alloc_destroy(apr_bucket_alloc_t *list)
112 if (list->pool) {
113 apr_pool_cleanup_kill(list->pool, list, alloc_cleanup);
116 apr_allocator_free(list->allocator, list->blocks);
119 if (list->pool && list->allocator != apr_pool_allocator_get(list->pool)) {
120 apr_allocator_destroy(list->allocator);
125 APU_DECLARE_NONSTD(apr_size_t) apr_bucket_alloc_aligned_floor(apr_bucket_alloc_t *list,
134 size = apr_allocator_align(list->allocator, 0);
137 size = apr_allocator_align(list->allocator,
157 apr_bucket_alloc_t *list)
160 apr_memnode_t *active = list->blocks;
165 if (list->freelist) {
166 node = list->freelist;
167 list->freelist = node->next;
172 list->blocks = apr_allocator_alloc(list->allocator, ALLOC_AMT);
173 if (!list->blocks) {
174 list->blocks = active;
177 list->blocks->next = active;
178 active = list->blocks;
182 node->alloc = list;
189 apr_memnode_t *memnode = apr_allocator_alloc(list->allocator, size);
194 node->alloc = list;
207 apr_bucket_alloc_t *list = node->alloc;
208 node_header_t *curr = list->freelist;
224 apr_bucket_alloc_t *list = node->alloc;
228 node->next = list->freelist;
229 list->freelist = node;
232 apr_allocator_free(list->allocator, node->memnode);