Lines Matching refs:mem

430     void             *mem;  in nxt_unit_init()  local
444 mem = MAP_FAILED; in nxt_unit_init()
508 mem = mmap(NULL, sizeof(nxt_port_queue_t), in nxt_unit_init()
510 if (nxt_slow_path(mem == MAP_FAILED)) { in nxt_unit_init()
517 nxt_port_queue_init(mem); in nxt_unit_init()
524 lib->main_ctx.read_port = nxt_unit_add_port(ctx, &read_port, mem); in nxt_unit_init()
539 mem = mmap(NULL, sizeof(nxt_app_queue_t), PROT_READ | PROT_WRITE, in nxt_unit_init()
541 if (nxt_slow_path(mem == MAP_FAILED)) { in nxt_unit_init()
550 lib->shared_port = nxt_unit_add_port(ctx, &shared_port, mem); in nxt_unit_init()
571 if (mem != MAP_FAILED) { in nxt_unit_init()
572 munmap(mem, sizeof(nxt_port_queue_t)); in nxt_unit_init()
1166 void *mem; in nxt_unit_process_new_port() local
1200 mem = mmap(NULL, sizeof(nxt_port_queue_t), PROT_READ | PROT_WRITE, in nxt_unit_process_new_port()
1203 if (nxt_slow_path(mem == MAP_FAILED)) { in nxt_unit_process_new_port()
1214 port = nxt_unit_add_port(ctx, &new_port, mem); in nxt_unit_process_new_port()
3729 void *mem; in nxt_unit_new_mmap() local
3748 mem = mmap(NULL, PORT_MMAP_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in nxt_unit_new_mmap()
3749 if (nxt_slow_path(mem == MAP_FAILED)) { in nxt_unit_new_mmap()
3758 mm->hdr = mem; in nxt_unit_new_mmap()
3759 hdr = mem; in nxt_unit_new_mmap()
3783 munmap(mem, PORT_MMAP_SIZE); in nxt_unit_new_mmap()
3983 void *mem; in nxt_unit_incoming_mmap() local
4003 mem = mmap(NULL, mmap_stat.st_size, PROT_READ | PROT_WRITE, in nxt_unit_incoming_mmap()
4005 if (nxt_slow_path(mem == MAP_FAILED)) { in nxt_unit_incoming_mmap()
4012 hdr = mem; in nxt_unit_incoming_mmap()
4020 munmap(mem, PORT_MMAP_SIZE); in nxt_unit_incoming_mmap()
4033 munmap(mem, PORT_MMAP_SIZE); in nxt_unit_incoming_mmap()
5088 void *mem; in nxt_unit_ctx_alloc() local
5125 mem = mmap(NULL, sizeof(nxt_port_queue_t), in nxt_unit_ctx_alloc()
5127 if (nxt_slow_path(mem == MAP_FAILED)) { in nxt_unit_ctx_alloc()
5134 nxt_port_queue_init(mem); in nxt_unit_ctx_alloc()
5137 port_impl->queue = mem; in nxt_unit_ctx_alloc()