Home
last modified time | relevance | path

Searched refs:zone (Results 1 – 3 of 3) sorted by relevance

/unit/src/
H A Dnxt_mem_zone.c91 (void *) (zone->start + ((page - zone->pages) << zone->page_size_shift))
95 &zone->pages[((u_char *) addr - zone->start) >> zone->page_size_shift]
181 zone->pages = page; in nxt_mem_zone_init()
205 return zone; in nxt_mem_zone_init()
215 nxt_mem_zone_t *zone; in nxt_mem_zone_pages() local
259 zone->end = end; in nxt_mem_zone_pages()
274 n = zone->max_chunk_size; in nxt_mem_zone_pages()
277 zone->page_size_shift++; in nxt_mem_zone_pages()
291 slot = zone->slots; in nxt_mem_zone_slots_init()
454 if (size <= zone->max_chunk_size && alignment <= zone->max_chunk_size) { in nxt_mem_zone_align()
[all …]
H A Dnxt_mem_zone.h17 #define nxt_mem_zone_alloc(zone, size) \ argument
18 nxt_mem_zone_align((zone), 1, (size))
20 NXT_EXPORT void *nxt_mem_zone_align(nxt_mem_zone_t *zone, size_t alignment,
23 NXT_EXPORT void *nxt_mem_zone_zalloc(nxt_mem_zone_t *zone, size_t size)
25 NXT_EXPORT void nxt_mem_zone_free(nxt_mem_zone_t *zone, void *p);
/unit/src/test/
H A Dnxt_mem_zone_test.c19 nxt_mem_zone_t *zone; in nxt_mem_zone_test() local
33 zone = nxt_mem_zone_init(start, zone_size, page_size); in nxt_mem_zone_test()
34 if (zone == NULL) { in nxt_mem_zone_test()
53 blocks[n] = nxt_mem_zone_alloc(zone, size & max_size); in nxt_mem_zone_test()
63 nxt_mem_zone_free(zone, blocks[n]); in nxt_mem_zone_test()
68 nxt_free(zone); in nxt_mem_zone_test()