Home
last modified time | relevance | path

Searched refs:mmaps (Results 1 – 4 of 4) sorted by relevance

/unit/src/
H A Dnxt_port_memory.c287 nxt_port_new_port_mmap(nxt_task_t *task, nxt_port_mmaps_t *mmaps, in nxt_port_new_port_mmap() argument
305 port_mmap = nxt_port_mmap_at(mmaps, mmaps->size); in nxt_port_new_port_mmap()
337 hdr->id = mmaps->size - 1; in nxt_port_new_port_mmap()
361 mmaps->size--; in nxt_port_new_port_mmap()
455 nxt_thread_mutex_lock(&mmaps->mutex); in nxt_port_mmap_get()
457 end_port_mmap = mmaps->elts + mmaps->size; in nxt_port_mmap_get()
459 for (port_mmap = mmaps->elts; in nxt_port_mmap_get()
504 mmap_handler = nxt_port_new_port_mmap(task, mmaps, tracking, n); in nxt_port_mmap_get()
508 nxt_thread_mutex_unlock(&mmaps->mutex); in nxt_port_mmap_get()
543 nxt_port_mmap_get_buf(nxt_task_t *task, nxt_port_mmaps_t *mmaps, size_t size) in nxt_port_mmap_get_buf() argument
[all …]
H A Dnxt_port_memory.h24 nxt_port_mmap_get_buf(nxt_task_t *task, nxt_port_mmaps_t *mmaps, size_t size);
H A Dnxt_unit.c3700 cap = mmaps->cap; in nxt_unit_mmap_at()
3716 if (cap != mmaps->cap) { in nxt_unit_mmap_at()
3723 mmaps->elts = e; in nxt_unit_mmap_at()
3732 mmaps->cap = cap; in nxt_unit_mmap_at()
3736 mmaps->size = i + 1; in nxt_unit_mmap_at()
3739 return mmaps->elts + i; in nxt_unit_mmap_at()
4117 mmaps->size = 0; in nxt_unit_mmaps_init()
4118 mmaps->cap = 0; in nxt_unit_mmaps_init()
4119 mmaps->elts = NULL; in nxt_unit_mmaps_init()
4154 end = mmaps->elts + mmaps->size; in nxt_unit_mmaps_destroy()
[all …]
H A Dnxt_router.c5569 nxt_port_mmaps_t *mmaps; in nxt_router_get_mmap_handler() local
5608 mmaps = &port->app->outgoing; in nxt_router_get_mmap_handler()
5609 nxt_thread_mutex_lock(&mmaps->mutex); in nxt_router_get_mmap_handler()
5611 if (nxt_slow_path(get_mmap_msg->id >= mmaps->size)) { in nxt_router_get_mmap_handler()
5612 nxt_thread_mutex_unlock(&mmaps->mutex); in nxt_router_get_mmap_handler()
5623 mmap_handler = mmaps->elts[get_mmap_msg->id].mmap_handler; in nxt_router_get_mmap_handler()
5627 nxt_thread_mutex_unlock(&mmaps->mutex); in nxt_router_get_mmap_handler()