/unit/src/ |
H A D | nxt_status.h | 30 nxt_conf_value_t *nxt_status_get(nxt_status_report_t *report, nxt_mp_t *mp);
|
H A D | nxt_conn_accept.c | 88 nxt_mp_t *mp; in nxt_conn_accept_alloc() local 96 mp = nxt_mp_create(1024, 128, 256, 32); in nxt_conn_accept_alloc() 98 if (nxt_fast_path(mp != NULL)) { in nxt_conn_accept_alloc() 99 c = nxt_conn_create(mp, lev->socket.task); in nxt_conn_accept_alloc() 101 nxt_mp_destroy(mp); in nxt_conn_accept_alloc()
|
H A D | nxt_credential.h | 22 NXT_EXPORT nxt_int_t nxt_credential_get(nxt_task_t *task, nxt_mp_t *mp,
|
H A D | nxt_http_static.c | 78 nxt_mp_t *mp; in nxt_http_static_init() local 86 mp = rtcf->mem_pool; in nxt_http_static_init() 88 conf = nxt_mp_zget(mp, sizeof(nxt_http_static_conf_t)); in nxt_http_static_init() 97 conf->shares = nxt_mp_zget(mp, sizeof(nxt_http_static_share_t) in nxt_http_static_init() 120 ret = nxt_conf_get_string_dup(acf->index, mp, &conf->index); in nxt_http_static_init() 173 action->fallback = nxt_mp_alloc(mp, sizeof(nxt_http_action_t)); in nxt_http_static_init() 929 nxt_http_static_mtypes_init(nxt_mp_t *mp, nxt_lvlhsh_t *hash) in nxt_http_static_mtypes_init() argument 1007 ret = nxt_http_static_mtypes_hash_add(mp, hash, &exten, type); in nxt_http_static_mtypes_init() 1034 nxt_http_static_mtypes_hash_add(nxt_mp_t *mp, nxt_lvlhsh_t *hash, in nxt_http_static_mtypes_hash_add() argument 1040 mtype = nxt_mp_get(mp, sizeof(nxt_http_static_mtype_t)); in nxt_http_static_mtypes_hash_add() [all …]
|
H A D | nxt_string.h | 119 NXT_EXPORT nxt_str_t *nxt_str_alloc(nxt_mp_t *mp, size_t length); 120 NXT_EXPORT nxt_str_t *nxt_str_dup(nxt_mp_t *mp, nxt_str_t *dst, 122 NXT_EXPORT char *nxt_str_cstrz(nxt_mp_t *mp, const nxt_str_t *src);
|
H A D | nxt_http_route_addr.h | 71 NXT_EXPORT nxt_int_t nxt_http_route_addr_pattern_parse(nxt_mp_t *mp,
|
H A D | nxt_isolation.c | 72 nxt_mp_t *mp) in nxt_isolation_main_prefork() argument 319 nxt_isolation_credential_map(nxt_task_t *task, nxt_mp_t *mp, in nxt_isolation_credential_map() argument 352 map->map = nxt_mp_alloc(mp, map->size * sizeof(nxt_clone_map_entry_t)); in nxt_isolation_credential_map() 360 ret = nxt_conf_map_object(mp, obj, nxt_clone_map_entry_conf, in nxt_isolation_credential_map() 614 nxt_mp_t *mp; in nxt_isolation_set_lang_mounts() local 619 mp = process->mem_pool; in nxt_isolation_set_lang_mounts() 622 mounts = nxt_array_copy(mp, NULL, lang_mounts); in nxt_isolation_set_lang_mounts() 637 mnt[i].dst = nxt_mp_alloc(mp, rootfs_len + len + 1); in nxt_isolation_set_lang_mounts() 663 mnt->dst = nxt_mp_nget(mp, rootfs_len + nxt_length("/tmp") + 1); in nxt_isolation_set_lang_mounts() 682 mnt->dst = nxt_mp_nget(mp, rootfs_len + nxt_length("/proc") + 1); in nxt_isolation_set_lang_mounts()
|
H A D | nxt_listen_socket.h | 57 NXT_EXPORT nxt_int_t nxt_listen_socket_create(nxt_task_t *task, nxt_mp_t *mp,
|
H A D | nxt_port_memory.c | 121 nxt_mp_t *mp; in nxt_port_mmap_buf_completion() local 189 mp = b->data; in nxt_port_mmap_buf_completion() 191 nxt_mp_free(mp, b); in nxt_port_mmap_buf_completion() 192 nxt_mp_release(mp); in nxt_port_mmap_buf_completion() 545 nxt_mp_t *mp; in nxt_port_mmap_get_buf() local 572 mp = task->thread->engine->mem_pool; in nxt_port_mmap_get_buf() 573 nxt_mp_free(mp, b); in nxt_port_mmap_get_buf() 574 nxt_mp_release(mp); in nxt_port_mmap_get_buf()
|
H A D | nxt_runtime.c | 49 nxt_mp_t *mp; in nxt_runtime_create() local 55 mp = nxt_mp_create(1024, 128, 256, 32); in nxt_runtime_create() 56 if (nxt_slow_path(mp == NULL)) { in nxt_runtime_create() 60 rt = nxt_mp_zget(mp, sizeof(nxt_runtime_t)); in nxt_runtime_create() 66 rt->mem_pool = mp; in nxt_runtime_create() 70 rt->services = nxt_services_init(mp); in nxt_runtime_create() 145 nxt_mp_destroy(mp); in nxt_runtime_create() 1240 nxt_mp_t *mp; in nxt_runtime_listen_socket_add() local 1248 mp = rt->mem_pool; in nxt_runtime_listen_socket_add() 1457 nxt_current_directory(nxt_mp_t *mp) in nxt_current_directory() argument [all …]
|
H A D | nxt_js.c | 84 nxt_js_conf_new(nxt_mp_t *mp, nxt_bool_t test) in nxt_js_conf_new() argument 88 jcf = nxt_mp_zget(mp, sizeof(nxt_js_conf_t)); in nxt_js_conf_new() 93 jcf->pool = mp; in nxt_js_conf_new() 96 jcf->modules = nxt_array_create(mp, 4, sizeof(nxt_js_module_t)); in nxt_js_conf_new() 101 jcf->funcs = nxt_array_create(mp, 4, sizeof(nxt_str_t)); in nxt_js_conf_new()
|
H A D | nxt_http_proxy.c | 53 nxt_http_proxy_init(nxt_mp_t *mp, nxt_http_action_t *action, in nxt_http_proxy_init() argument 68 sa = nxt_sockaddr_parse(mp, &name); in nxt_http_proxy_init() 77 up = nxt_mp_alloc(mp, sizeof(nxt_upstream_t)); in nxt_http_proxy_init() 86 proxy = nxt_mp_alloc(mp, sizeof(nxt_upstream_proxy_t)); in nxt_http_proxy_init()
|
H A D | nxt_js.h | 26 nxt_js_conf_t *nxt_js_conf_new(nxt_mp_t *mp, nxt_bool_t test);
|
H A D | nxt_main_process.c | 866 nxt_mp_t *mp; in nxt_main_process_sigusr1_handler() local 886 mp = nxt_mp_create(1024, 128, 256, 32); in nxt_main_process_sigusr1_handler() 887 if (mp == NULL) { in nxt_main_process_sigusr1_handler() 895 nxt_mp_destroy(mp); in nxt_main_process_sigusr1_handler() 939 nxt_mp_destroy(mp); in nxt_main_process_sigusr1_handler() 957 nxt_mp_destroy(mp); in nxt_main_process_sigusr1_handler() 1411 nxt_mp_t *mp; in nxt_main_port_modules_handler() local 1449 mp = nxt_mp_create(1024, 128, 256, 32); in nxt_main_port_modules_handler() 1450 if (mp == NULL) { in nxt_main_port_modules_handler() 1454 b = nxt_buf_chk_make_plain(mp, b, msg->size); in nxt_main_port_modules_handler() [all …]
|
H A D | nxt_process.h | 133 nxt_process_t *process, nxt_mp_t *mp); 135 nxt_process_t *process, nxt_mp_t *mp);
|
H A D | nxt_tls.h | 39 nxt_int_t (*server_init)(nxt_task_t *task, nxt_mp_t *mp,
|
H A D | nxt_http_variables.c | 138 nxt_http_unknown_var_ref(nxt_mp_t *mp, nxt_var_ref_t *ref, nxt_str_t *name) in nxt_http_unknown_var_ref() argument 154 lower = nxt_str_alloc(mp, str.length); in nxt_http_unknown_var_ref() 177 hash = nxt_http_header_hash(mp, &str); in nxt_http_unknown_var_ref() 193 hash = nxt_http_argument_hash(mp, &str); in nxt_http_unknown_var_ref() 209 hash = nxt_http_cookie_hash(mp, &str); in nxt_http_unknown_var_ref() 218 ref->data = nxt_var_field_new(mp, &str, (uint32_t) hash); in nxt_http_unknown_var_ref()
|
H A D | nxt_router.c | 95 nxt_mp_t *mp); 124 nxt_mp_t *mp, nxt_conf_value_t *conf); 1069 nxt_mp_t *mp, *tmp; in nxt_router_temp_conf() local 1074 if (nxt_slow_path(mp == NULL)) { in nxt_router_temp_conf() 1083 rtcf->mem_pool = mp; in nxt_router_temp_conf() 1144 nxt_mp_destroy(mp); in nxt_router_temp_conf() 1662 mp = rtcf->mem_pool; in nxt_router_conf_create() 2278 nxt_mp_t *mp; in nxt_router_conf_process_static() local 2286 mp = rtcf->mem_pool; in nxt_router_conf_process_static() 2952 nxt_mp_t *mp; in nxt_router_tls_rpc_handler() local [all …]
|
H A D | nxt_list.h | 95 NXT_EXPORT nxt_list_t *nxt_list_create(nxt_mp_t *mp, nxt_uint_t n, size_t size);
|
H A D | nxt_listen_socket.c | 30 nxt_listen_socket_create(nxt_task_t *task, nxt_mp_t *mp, in nxt_listen_socket_create() argument 101 sa = nxt_sockaddr_alloc(mp, sa->socklen + 4, sa->length + 4); in nxt_listen_socket_create()
|
H A D | nxt_http_parse.h | 117 nxt_mp_t *mp);
|
H A D | nxt_runtime.h | 129 nxt_str_t *nxt_current_directory(nxt_mp_t *mp);
|
H A D | nxt_http_parse.c | 108 nxt_http_parse_request_init(nxt_http_request_parse_t *rp, nxt_mp_t *mp) in nxt_http_parse_request_init() argument 110 rp->mem_pool = mp; in nxt_http_parse_request_init() 112 rp->fields = nxt_list_create(mp, 8, sizeof(nxt_http_field_t)); in nxt_http_parse_request_init()
|
H A D | nxt_conn.h | 222 NXT_EXPORT nxt_conn_t *nxt_conn_create(nxt_mp_t *mp, nxt_task_t *task);
|
/unit/src/test/ |
H A D | nxt_http_parse_test.c | 656 nxt_mp_t *mp; in nxt_http_parse_test_bench() local 675 mp = nxt_mp_create(1024, 128, 256, 32); in nxt_http_parse_test_bench() 676 if (nxt_slow_path(mp == NULL)) { in nxt_http_parse_test_bench() 680 if (nxt_slow_path(nxt_http_parse_request_init(&rp, mp) != NXT_OK)) { in nxt_http_parse_test_bench() 701 nxt_mp_destroy(mp); in nxt_http_parse_test_bench()
|