Home
last modified time | relevance | path

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

/unit/src/test/
H A Dnxt_mem_zone_test.c16 size_t total, zone_size; in nxt_mem_zone_test() local
26 zone_size = (max_size + 1) * nblocks; in nxt_mem_zone_test()
28 start = nxt_memalign(page_size, zone_size); in nxt_mem_zone_test()
33 zone = nxt_mem_zone_init(start, zone_size, page_size); in nxt_mem_zone_test()
/unit/src/
H A Dnxt_mem_zone.h14 NXT_EXPORT nxt_mem_zone_t *nxt_mem_zone_init(u_char *start, size_t zone_size,
H A Dnxt_mem_zone.c126 static uint32_t nxt_mem_zone_pages(u_char *start, size_t zone_size,
158 nxt_mem_zone_init(u_char *start, size_t zone_size, nxt_uint_t page_size) in nxt_mem_zone_init() argument
171 pages = nxt_mem_zone_pages(start, zone_size, page_size); in nxt_mem_zone_init()
210 nxt_mem_zone_pages(u_char *start, size_t zone_size, nxt_uint_t page_size) in nxt_mem_zone_pages() argument
243 end = nxt_trunc_ptr(start + zone_size, page_size); in nxt_mem_zone_pages()
244 zone_size = end - start; in nxt_mem_zone_pages()
246 pages = (zone_size - reserved) / (page_size + sizeof(nxt_mem_zone_page_t)); in nxt_mem_zone_pages()
248 if (reserved > zone_size || pages == 0) { in nxt_mem_zone_pages()
249 nxt_thread_log_alert("mem zone size is too small: %uz", zone_size); in nxt_mem_zone_pages()