/unit/src/ |
H A D | nxt_vector.c | 12 const nxt_mem_proto_t *proto, void *pool) in nxt_vector_create() argument 32 const nxt_mem_proto_t *proto, void *pool) in nxt_vector_init() argument 34 vector->start = proto->alloc(pool, items * item_size); in nxt_vector_init() 49 void *pool) in nxt_vector_destroy() argument 54 proto->free(pool, vector->start); in nxt_vector_destroy() 63 proto->free(pool, vector->start); in nxt_vector_destroy() 68 proto->free(pool, vector); in nxt_vector_destroy() 96 start = proto->alloc(pool, size); in nxt_vector_add() 111 proto->free(pool, old); in nxt_vector_add() 125 void *pool) in nxt_vector_zero_add() argument [all …]
|
H A D | nxt_hash.h | 14 void *pool; member 31 lhq->pool = h->pool; in nxt_hash_insert() 41 lhq->pool = h->pool; in nxt_hash_delete()
|
H A D | nxt_vector.h | 32 const nxt_mem_proto_t *proto, void *pool); 34 size_t item_size, const nxt_mem_proto_t *proto, void *pool); 36 const nxt_mem_proto_t *proto, void *pool); 38 const nxt_mem_proto_t *proto, void *pool); 40 const nxt_mem_proto_t *proto, void *pool);
|
H A D | nxt_lvlhsh.c | 148 void *pool; member 465 lvl = proto->alloc(lhq->pool, size * (sizeof(void *))); in nxt_lvlhsh_convert_bucket_to_level() 491 q.pool = lhq->pool; in nxt_lvlhsh_convert_bucket_to_level() 505 proto->free(lhq->pool, bucket); in nxt_lvlhsh_convert_bucket_to_level() 621 proto->free(lhq->pool, level); in nxt_lvlhsh_free_level() 673 lhq->proto->free(lhq->pool, lvl); in nxt_lvlhsh_level_delete() 710 proto->free(lhq->pool, bucket); in nxt_lvlhsh_bucket_delete() 922 peek->proto->free(peek->pool, level); in nxt_lvlhsh_level_peek() 959 proto->free(peek->pool, bucket); in nxt_lvlhsh_bucket_peek() 973 void *pool) in nxt_lvlhsh_retrieve() argument [all …]
|
H A D | nxt_main.h | 84 typedef void *(*nxt_mem_proto_alloc_t)(void *pool, size_t size); 85 typedef void (*nxt_mem_proto_free_t)(void *pool, void *p);
|
H A D | nxt_mp.h | 116 NXT_EXPORT void *nxt_mp_lvlhsh_alloc(void *pool, size_t size); 117 NXT_EXPORT void nxt_mp_lvlhsh_free(void *pool, void *p);
|
H A D | nxt_lvlhsh.h | 95 void *pool; member 193 const nxt_lvlhsh_proto_t *proto, void *pool);
|
H A D | nxt_port_rpc.c | 150 lhq.pool = port->mem_pool; in nxt_port_rpc_register_handler_ex() 219 lhq.pool = port->mem_pool; in nxt_port_rpc_ex_set_peer() 266 lhq.pool = port->mem_pool; in nxt_port_rpc_remove_from_peers() 323 lhq.pool = port->mem_pool; in nxt_port_rpc_handler() 379 lhq.pool = port->mem_pool; in nxt_port_rpc_remove_peer() 441 lhq.pool = port->mem_pool; in nxt_port_rpc_remove_peer() 467 lhq.pool = port->mem_pool; in nxt_port_rpc_cancel()
|
H A D | nxt_cache.c | 39 nxt_int_t nxt_cache_shm_create(nxt_mem_zone_t *pool); 64 cache->pool = mz; in nxt_cache_shm_create() 144 lhq.pool = cache->pool; in nxt_cache_query() 429 lhq.pool = cache->pool; in nxt_cache_update()
|
H A D | nxt_upstream_source.c | 36 lhq.pool = mp; in nxt_upstream_header_hash_add()
|
H A D | nxt_controller.c | 17 nxt_mp_t *pool; member 339 if (nxt_slow_path(vldt.pool == NULL)) { in nxt_controller_start() 356 nxt_mp_destroy(vldt.pool); in nxt_controller_start() 367 nxt_mp_destroy(vldt.pool); in nxt_controller_start() 370 nxt_controller_conf.pool = mp; in nxt_controller_start() 497 nxt_controller_conf.pool = mp; in nxt_controller_conf_default() 1277 vldt.pool = c->mem_pool; in nxt_controller_process_config() 1306 req->conf.pool = mp; in nxt_controller_process_config() 1360 vldt.pool = c->mem_pool; in nxt_controller_process_config() 1389 req->conf.pool = mp; in nxt_controller_process_config() [all …]
|
H A D | nxt_conf_validation.c | 1316 p = nxt_mp_nget(vldt->pool, size); in nxt_conf_vldt_error() 1355 nxt_mp_t *pool; member 1368 ctx.pool = nxt_mp_create(1024, 128, 256, 32); in nxt_conf_vldt_mtypes() 1369 if (nxt_slow_path(ctx.pool == NULL)) { in nxt_conf_vldt_mtypes() 1382 nxt_mp_destroy(ctx.pool); in nxt_conf_vldt_mtypes() 1463 sa = nxt_sockaddr_parse(vldt->pool, name); in nxt_conf_vldt_listener() 2031 p = nxt_mp_nget(vldt->pool, name->length); in nxt_conf_vldt_match_encoded_patterns_set_member() 2090 p = nxt_mp_nget(vldt->pool, pattern.length); in nxt_conf_vldt_match_encoded_pattern() 2588 ret = nxt_conf_map_object(vldt->pool, value, in nxt_conf_vldt_processes() 2837 ret = nxt_conf_map_object(vldt->pool, value, in nxt_conf_vldt_clone_procmap() [all …]
|
H A D | nxt_cache.h | 21 void *pool; member
|
H A D | nxt_port_hash.c | 58 lhq->pool = NULL; in nxt_port_hash_lhq()
|
H A D | nxt_mp.c | 1065 nxt_mp_lvlhsh_alloc(void *pool, size_t size) in nxt_mp_lvlhsh_alloc() argument 1067 return nxt_mp_align(pool, size, size); in nxt_mp_lvlhsh_alloc() 1072 nxt_mp_lvlhsh_free(void *pool, void *p) in nxt_mp_lvlhsh_free() argument 1074 nxt_mp_free(pool, p); in nxt_mp_lvlhsh_free()
|
H A D | nxt_conf.h | 72 nxt_mp_t *pool; member
|
H A D | nxt_runtime.c | 1517 lhq.pool = rt->mem_pool; in nxt_runtime_process_get() 1559 lhq.pool = rt->mem_pool; in nxt_runtime_process_add() 1604 lhq.pool = rt->mem_pool; in nxt_runtime_process_remove()
|
H A D | nxt_application.c | 1114 lhq.pool = rt->mem_pool; in nxt_proto_process_add() 1143 lhq.pool = rt->mem_pool; in nxt_proto_process_remove()
|
H A D | nxt_var.c | 159 lhq.pool = mp; in nxt_var_cache_add()
|
H A D | nxt_port_socket.c | 1103 lhq.pool = port->mem_pool; in nxt_port_frag_start() 1151 lhq.pool = port->mem_pool; in nxt_port_frag_find()
|
H A D | nxt_http_static.c | 1045 lhq.pool = mp; in nxt_http_static_mtypes_hash_add()
|
H A D | nxt_openssl.c | 998 lhq.pool = mp;
|
H A D | nxt_conf.c | 1661 lhq.pool = mp; in nxt_conf_object_hash_add()
|
H A D | nxt_unit.c | 6400 lhq->pool = NULL; in nxt_unit_port_hash_lhq() 6496 lhq.pool = NULL; in nxt_unit_request_hash_add() 6532 lhq.pool = NULL; in nxt_unit_request_hash_find()
|
/unit/src/test/ |
H A D | nxt_lvlhsh_test.c | 40 void *pool, uintptr_t key) in nxt_lvlhsh_test_add() argument 50 lhq.pool = pool; in nxt_lvlhsh_test_add() 94 void *pool, uintptr_t key) in nxt_lvlhsh_test_delete() argument 103 lhq.pool = pool; in nxt_lvlhsh_test_delete()
|