Home
last modified time | relevance | path

Searched refs:nxt_mp_alloc (Results 1 – 22 of 22) sorted by relevance

/unit/src/
H A Dnxt_credential.c119 uc->gids = nxt_mp_alloc(mp, ngroups * sizeof(gid_t)); in nxt_credential_groups_get()
138 uc->gids = nxt_mp_alloc(mp, ngroups * sizeof(gid_t)); in nxt_credential_groups_get()
204 saved = nxt_mp_alloc(mp, nsaved * sizeof(nxt_gid_t)); in nxt_credential_groups_get()
247 uc->gids = nxt_mp_alloc(mp, ngroups * sizeof(nxt_gid_t)); in nxt_credential_groups_get()
H A Dnxt_job_resolve.c34 host = nxt_mp_alloc(jbr->job.mem_pool, length); in nxt_job_resolve()
73 jbr->sockaddrs = nxt_mp_alloc(mp, n * sizeof(nxt_sockaddr_t *)); in nxt_job_resolve()
H A Dnxt_array.c15 array = nxt_mp_alloc(mp, sizeof(nxt_array_t) + n * size); in nxt_array_create()
61 p = nxt_mp_alloc(array->mem_pool, array->size * new_alloc); in nxt_array_add()
H A Dnxt_buf.c35 b = nxt_mp_alloc(mp, NXT_BUF_MEM_SIZE + size); in nxt_buf_mem_alloc()
62 b = nxt_mp_alloc(mp, NXT_BUF_MEM_SIZE + sizeof(nxt_buf_ts_t) + size); in nxt_buf_mem_ts_alloc()
100 b = nxt_mp_alloc(mp, NXT_BUF_FILE_SIZE + size); in nxt_buf_file_alloc()
H A Dnxt_mp.h67 NXT_EXPORT void *nxt_mp_alloc(nxt_mp_t *mp, size_t size)
H A Dnxt_upstream_round_robin.c134 u = nxt_mp_alloc(mp, sizeof(nxt_upstream_t)); in nxt_upstream_round_robin_joint_create()
146 urr = nxt_mp_alloc(mp, size); in nxt_upstream_round_robin_joint_create()
H A Dnxt_http_route.c252 routes = nxt_mp_alloc(mp, size); in nxt_http_routes_create()
369 route = nxt_mp_alloc(tmcf->router_conf->mem_pool, size); in nxt_http_route_create()
418 match = nxt_mp_alloc(mp, size); in nxt_http_route_match_create()
698 table = nxt_mp_alloc(mp, size); in nxt_http_route_table_create()
738 ruleset = nxt_mp_alloc(mp, size); in nxt_http_route_ruleset_create()
814 rule = nxt_mp_alloc(mp, size); in nxt_http_route_rule_create()
855 addr_rule = nxt_mp_alloc(mp, size); in nxt_http_route_addr_rule_create()
1491 action = nxt_mp_alloc(mp, sizeof(nxt_http_action_t)); in nxt_http_action_create()
1520 action = nxt_mp_alloc(rtcf->mem_pool, sizeof(nxt_http_action_t)); in nxt_http_pass_application()
H A Dnxt_http_proxy.c77 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 Dnxt_sockaddr.c177 dst = nxt_mp_alloc(mp, length); in nxt_sockaddr_copy()
946 jbs->resolve.sockaddrs = nxt_mp_alloc(mp, sizeof(void *)); in nxt_job_sockaddr_unix_parse()
997 jbs->resolve.sockaddrs = nxt_mp_alloc(mp, sizeof(void *)); in nxt_job_sockaddr_inet6_parse()
1152 jbs->resolve.sockaddrs = nxt_mp_alloc(mp, sizeof(void *)); in nxt_job_sockaddr_inet_parse()
H A Dnxt_isolation.c298 map->map = nxt_mp_alloc(mp, map->size * sizeof(nxt_clone_map_entry_t)); in nxt_isolation_credential_map()
462 process->isolation.rootfs = nxt_mp_alloc(process->mem_pool, in nxt_isolation_set_rootfs()
583 mnt[i].dst = nxt_mp_alloc(mp, rootfs_len + len + 1); in nxt_isolation_set_lang_mounts()
H A Dnxt_application.c410 module->file.start = nxt_mp_alloc(mp, module->file.length); in nxt_discovery_module()
615 process->name = nxt_mp_alloc(process->mem_pool, nxt_app_conf->name.length in nxt_proto_start_process_handler()
902 dst = nxt_mp_alloc(mp, len + 1); in nxt_cstr_dup()
H A Dnxt_mp.c390 nxt_mp_alloc(nxt_mp_t *mp, size_t size) in nxt_mp_alloc() function
420 p = nxt_mp_alloc(mp, size); in nxt_mp_zalloc()
H A Dnxt_string.c75 dst = nxt_mp_alloc(mp, src->length + 1); in nxt_str_cstrz()
H A Dnxt_port_socket.c953 smsg = nxt_mp_alloc(port->mem_pool, in nxt_port_queue_read_handler()
1086 fmsg = nxt_mp_alloc(port->mem_pool, sizeof(nxt_port_recv_msg_t)); in nxt_port_frag_start()
H A Dnxt_event_engine.c626 return nxt_mp_alloc(engine->mem_pool, size); in nxt_event_engine_mem_alloc()
H A Dnxt_http_parse.c875 u = nxt_mp_alloc(rp->mem_pool, rp->target_end - p + 1); in nxt_http_parse_complex_target()
H A Dnxt_http_static.c172 action->fallback = nxt_mp_alloc(mp, sizeof(nxt_http_action_t)); in nxt_http_static_init()
H A Dnxt_main_process.c435 process->name = nxt_mp_alloc(process->mem_pool, app_conf->name.length in nxt_main_start_process_handler()
H A Dnxt_controller.c634 ls = nxt_mp_alloc(rt->mem_pool, sizeof(nxt_listen_socket_t)); in nxt_runtime_controller_socket()
H A Dnxt_router.c2589 rpc = nxt_mp_alloc(tmcf->mem_pool, sizeof(nxt_socket_rpc_t)); in nxt_router_listen_socket_rpc_create()
3151 joint = nxt_mp_alloc(tmcf->router_conf->mem_pool, in nxt_router_engine_joints_create()
/unit/src/test/
H A Dnxt_mp_test.c63 blocks[n] = nxt_mp_alloc(mp, size); in nxt_mp_test()
H A Dnxt_clone_test.c580 map->map = nxt_mp_alloc(rt->mem_pool, in nxt_clone_test_parse_map()