Lines Matching refs:mem

464     nxt_memcpy(&pid, msg->buf->mem.pos, sizeof(pid));  in nxt_controller_remove_pid_handler()
558 void *mem; in nxt_controller_conf_send() local
589 mem = nxt_mem_mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in nxt_controller_conf_send()
590 if (nxt_slow_path(mem == MAP_FAILED)) { in nxt_controller_conf_send()
594 end = nxt_conf_json_print(mem, conf, NULL); in nxt_controller_conf_send()
596 nxt_mem_munmap(mem, size); in nxt_controller_conf_send()
598 size = end - (u_char *) mem; in nxt_controller_conf_send()
600 b->mem.free = nxt_cpymem(b->mem.pos, &size, sizeof(size_t)); in nxt_controller_conf_send()
751 rc = nxt_http_parse_request(&r->parser, &b->mem); in nxt_controller_conn_read()
756 if (nxt_buf_mem_free_size(&b->mem) == 0) { in nxt_controller_conn_read()
782 preread = nxt_buf_mem_used_size(&b->mem); in nxt_controller_conn_read()
793 if (r->length - preread > (size_t) nxt_buf_mem_free_size(&b->mem)) { in nxt_controller_conn_read()
800 b->mem.free = nxt_cpymem(b->mem.free, c->read->mem.pos, preread); in nxt_controller_conn_read()
875 read = nxt_buf_mem_used_size(&b->mem); in nxt_controller_conn_body_read()
914 if (b->mem.pos != b->mem.free) { in nxt_controller_conn_write()
1213 mbuf = &c->read->mem; in nxt_controller_process_config()
1526 cert = nxt_cert_mem(task, &c->read->mem); in nxt_controller_process_cert()
1658 mbuf = &c->read->mem; in nxt_controller_process_cert_save()
1723 nxt_buf_mem_used_size(&msg->buf->mem), msg->buf->mem.pos); in nxt_controller_conf_handler()
1807 b->mem.free = nxt_cpymem(b->mem.pos, path->start, path->length); in nxt_controller_process_control()
1905 void *mem; in nxt_controller_conf_store() local
1924 mem = nxt_mem_mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in nxt_controller_conf_store()
1925 if (nxt_slow_path(mem == MAP_FAILED)) { in nxt_controller_conf_store()
1929 end = nxt_conf_json_print(mem, conf, NULL); in nxt_controller_conf_store()
1931 nxt_mem_munmap(mem, size); in nxt_controller_conf_store()
1933 size = end - (u_char *) mem; in nxt_controller_conf_store()
1940 b->mem.free = nxt_cpymem(b->mem.pos, &size, sizeof(size_t)); in nxt_controller_conf_store()
2071 body->mem.free = nxt_conf_json_print(body->mem.free, value, &pretty); in nxt_controller_response()
2073 body->mem.free = nxt_cpymem(body->mem.free, "\r\n", 2); in nxt_controller_response()
2093 b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length); in nxt_controller_response()
2094 b->mem.free = nxt_cpymem(b->mem.free, status_line.start, in nxt_controller_response()
2101 b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length); in nxt_controller_response()
2103 b->mem.free = nxt_thread_time_string(task->thread, &date_cache, in nxt_controller_response()
2104 b->mem.free); in nxt_controller_response()
2110 b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length); in nxt_controller_response()
2112 b->mem.free = nxt_sprintf(b->mem.free, b->mem.end, "%uz", in nxt_controller_response()
2113 nxt_buf_mem_used_size(&body->mem)); in nxt_controller_response()
2119 b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length); in nxt_controller_response()