Home
last modified time | relevance | path

Searched refs:free_size (Results 1 – 2 of 2) sorted by relevance

/unit/src/
H A Dnxt_port_memory.c601 size_t nchunks, free_size; in nxt_port_mmap_increase_buf() local
614 free_size = nxt_buf_mem_free_size(&b->mem); in nxt_port_mmap_increase_buf()
616 if (nxt_slow_path(size <= free_size)) { in nxt_port_mmap_increase_buf()
625 size -= free_size; in nxt_port_mmap_increase_buf()
643 && min_size > free_size + PORT_MMAP_CHUNK_SIZE * (c - start)) in nxt_port_mmap_increase_buf()
H A Dnxt_router.c5522 size_t fields_count, req_size, size, free_size; in nxt_router_prepare_msg() local
5743 free_size = nxt_min(size, PORT_MMAP_DATA_SIZE); in nxt_router_prepare_msg()
5745 buf = nxt_port_mmap_get_buf(task, &app->outgoing, free_size); in nxt_router_prepare_msg()
5760 free_size = nxt_buf_mem_free_size(&buf->mem); in nxt_router_prepare_msg()
5761 if (free_size < size in nxt_router_prepare_msg()
5765 free_size = nxt_buf_mem_free_size(&buf->mem); in nxt_router_prepare_msg()
5769 if (free_size > 0) { in nxt_router_prepare_msg()
5770 copy_size = nxt_min(free_size, size); in nxt_router_prepare_msg()