Home
last modified time | relevance | path

Searched refs:ngx_palloc (Results 1 – 25 of 86) sorted by relevance

1234

/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_list.c17 list = ngx_palloc(pool, sizeof(ngx_list_t)); in ngx_list_create()
42 last = ngx_palloc(l->pool, sizeof(ngx_list_part_t)); in ngx_list_push()
47 last->elts = ngx_palloc(l->pool, l->nalloc * l->size); in ngx_list_push()
H A Dngx_array.c17 a = ngx_palloc(p, sizeof(ngx_array_t)); in ngx_array_create()
76 new = ngx_palloc(p, 2 * size); in ngx_array_push()
126 new = ngx_palloc(p, nalloc * a->size); in ngx_array_push_n()
H A Dngx_buf.c22 b->start = ngx_palloc(pool, size); in ngx_create_temp_buf()
59 cl = ngx_palloc(pool, sizeof(ngx_chain_t)); in ngx_alloc_chain_link()
76 p = ngx_palloc(pool, bufs->num * bufs->size); in ngx_create_chain_of_bufs()
H A Dngx_palloc.c123 ngx_palloc(ngx_pool_t *pool, size_t size) in ngx_palloc() function
302 p = ngx_palloc(pool, size); in ngx_pcalloc()
316 c = ngx_palloc(p, sizeof(ngx_pool_cleanup_t)); in ngx_pool_cleanup_add()
322 c->data = ngx_palloc(p, size); in ngx_pool_cleanup_add()
H A Dngx_array.h44 array->elts = ngx_palloc(pool, n * size); in ngx_array_init()
H A Dngx_list.h39 list->part.elts = ngx_palloc(pool, n * size); in ngx_list_init()
H A Dngx_palloc.h79 void *ngx_palloc(ngx_pool_t *pool, size_t size);
H A Dngx_buf.h147 #define ngx_alloc_buf(pool) ngx_palloc(pool, sizeof(ngx_buf_t))
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_degradation_module.c132 sbrk_size = (size_t) sbrk(0) - ((uintptr_t) ngx_palloc & ~0x3FFFFF); in ngx_http_degraded()
173 conf = ngx_palloc(cf->pool, sizeof(ngx_http_degradation_loc_conf_t)); in ngx_http_degradation_create_loc_conf()
H A Dngx_http_map_module.c163 mcf = ngx_palloc(cf->pool, sizeof(ngx_http_map_conf_t)); in ngx_http_map_create_conf()
463 var = ngx_palloc(ctx->keys.pool, sizeof(ngx_http_variable_value_t)); in ngx_http_map()
485 cvp = ngx_palloc(ctx->keys.pool, sizeof(ngx_http_complex_value_t)); in ngx_http_map()
H A Dngx_http_image_filter_module.c482 ctx->image = ngx_palloc(r->pool, ctx->length); in ngx_http_image_read()
1431 imcf->acv = ngx_palloc(cf->pool, in ngx_http_image_filter()
1477 imcf->wcv = ngx_palloc(cf->pool, sizeof(ngx_http_complex_value_t)); in ngx_http_image_filter()
1505 imcf->hcv = ngx_palloc(cf->pool, sizeof(ngx_http_complex_value_t)); in ngx_http_image_filter()
1559 imcf->jqcv = ngx_palloc(cf->pool, sizeof(ngx_http_complex_value_t)); in ngx_http_image_filter_jpeg_quality()
1606 imcf->wqcv = ngx_palloc(cf->pool, sizeof(ngx_http_complex_value_t)); in ngx_http_image_filter_webp_quality()
1653 imcf->shcv = ngx_palloc(cf->pool, sizeof(ngx_http_complex_value_t)); in ngx_http_image_filter_sharpen()
H A Dngx_http_chunked_filter_module.c166 chunk = ngx_palloc(r->pool, sizeof("0000000000000000" CRLF) - 1); in ngx_http_chunked_body_filter()
284 b->pos = ngx_palloc(r->pool, len); in ngx_http_chunked_create_trailers()
H A Dngx_http_sub_filter_module.c234 ctx->matches = ngx_palloc(r->pool, sizeof(ngx_array_t)); in ngx_http_sub_header_filter()
242 ctx->tables = ngx_palloc(r->pool, sizeof(ngx_http_sub_tables_t)); in ngx_http_sub_header_filter()
916 matches = ngx_palloc(cf->pool, sizeof(ngx_http_sub_match_t) * n); in ngx_http_sub_merge_conf()
926 conf->matches = ngx_palloc(cf->pool, sizeof(ngx_array_t)); in ngx_http_sub_merge_conf()
934 conf->tables = ngx_palloc(cf->pool, sizeof(ngx_http_sub_tables_t)); in ngx_http_sub_merge_conf()
H A Dngx_http_upstream_hash_module.c130 hp = ngx_palloc(r->pool, sizeof(ngx_http_upstream_hash_peer_data_t)); in ngx_http_upstream_init_hash_peer()
314 points = ngx_palloc(cf->pool, size); in ngx_http_upstream_init_chash()
627 conf = ngx_palloc(cf->pool, sizeof(ngx_http_upstream_hash_srv_conf_t)); in ngx_http_upstream_hash_create_conf()
H A Dngx_http_upstream_random_module.c134 ranges = pool ? ngx_palloc(pool, size) : ngx_alloc(size, ngx_cycle->log); in ngx_http_upstream_update_random()
165 rp = ngx_palloc(r->pool, sizeof(ngx_http_upstream_random_peer_data_t)); in ngx_http_upstream_init_random_peer()
H A Dngx_http_browser_module.c672 bcf->modern_browser_value = ngx_palloc(cf->pool, in ngx_http_modern_browser_value()
697 bcf->ancient_browser_value = ngx_palloc(cf->pool, in ngx_http_ancient_browser_value()
/f-stack/app/nginx-1.16.1/src/http/v2/
H A Dngx_http_v2_table.c205 h2c->hpack.entries = ngx_palloc(h2c->connection->pool, in ngx_http_v2_add_header()
212 h2c->hpack.storage = ngx_palloc(h2c->connection->pool, in ngx_http_v2_add_header()
228 entry = ngx_palloc(h2c->connection->pool, sizeof(ngx_http_v2_header_t)); in ngx_http_v2_add_header()
270 entries = ngx_palloc(h2c->connection->pool, in ngx_http_v2_add_header()
H A Dngx_http_v2_filter_module.c437 tmp = ngx_palloc(r->pool, tmp_len); in ngx_http_v2_header_filter()
950 tmp = ngx_palloc(r->pool, len); in ngx_http_v2_push_resource()
964 tmp = ngx_palloc(r->pool, len); in ngx_http_v2_push_resource()
1092 frame = ngx_palloc(r->pool, sizeof(ngx_http_v2_out_frame_t)); in ngx_http_v2_create_headers_frame()
1198 frame = ngx_palloc(r->pool, sizeof(ngx_http_v2_out_frame_t)); in ngx_http_v2_create_push_frame()
1365 tmp = ngx_palloc(r->pool, tmp_len); in ngx_http_v2_create_trailers_frame()
1679 frame = ngx_palloc(stream->request->pool, in ngx_http_v2_filter_get_data_frame()
1711 buf->start = ngx_palloc(stream->request->pool, in ngx_http_v2_filter_get_data_frame()
/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_map_module.c161 mcf = ngx_palloc(cf->pool, sizeof(ngx_stream_map_conf_t)); in ngx_stream_map_create_conf()
462 var = ngx_palloc(ctx->keys.pool, sizeof(ngx_stream_variable_value_t)); in ngx_stream_map()
484 cvp = ngx_palloc(ctx->keys.pool, sizeof(ngx_stream_complex_value_t)); in ngx_stream_map()
H A Dngx_stream_upstream_hash_module.c128 hp = ngx_palloc(s->connection->pool, in ngx_stream_upstream_init_hash_peer()
314 points = ngx_palloc(cf->pool, size); in ngx_stream_upstream_init_chash()
626 conf = ngx_palloc(cf->pool, sizeof(ngx_stream_upstream_hash_srv_conf_t)); in ngx_stream_upstream_hash_create_conf()
H A Dngx_stream_upstream_random_module.c132 ranges = pool ? ngx_palloc(pool, size) : ngx_alloc(size, ngx_cycle->log); in ngx_stream_upstream_update_random()
164 rp = ngx_palloc(s->connection->pool, in ngx_stream_upstream_init_random_peer()
H A Dngx_stream_variables.c171 v = ngx_palloc(cf->pool, sizeof(ngx_stream_variable_t)); in ngx_stream_add_variable()
419 vv = ngx_palloc(s->connection->pool, in ngx_stream_get_variable()
431 vv = ngx_palloc(s->connection->pool, sizeof(ngx_stream_variable_value_t)); in ngx_stream_get_variable()
995 rv = ngx_palloc(rc->pool, n * sizeof(ngx_stream_regex_variable_t)); in ngx_stream_regex_compile()
1046 s->captures = ngx_palloc(s->connection->pool, len * sizeof(int)); in ngx_stream_regex_exec()
/f-stack/app/nginx-1.16.1/src/event/
H A Dngx_event_udp.c301 c->sockaddr = ngx_palloc(c->pool, socklen); in ngx_event_recvmsg()
309 log = ngx_palloc(c->pool, sizeof(ngx_log_t)); in ngx_event_recvmsg()
326 local_sockaddr = ngx_palloc(c->pool, local_socklen); in ngx_event_recvmsg()
H A Dngx_event_accept.c166 c->sockaddr = ngx_palloc(c->pool, socklen);
174 log = ngx_palloc(c->pool, sizeof(ngx_log_t));
/f-stack/app/nginx-1.16.1/src/http/
H A Dngx_http.c742 clcfp = ngx_palloc(cf->pool, in ngx_http_init_locations()
768 clcfp = ngx_palloc(cf->pool, in ngx_http_init_locations()
849 *locations = ngx_palloc(cf->temp_pool, in ngx_http_add_location()
858 lq = ngx_palloc(cf->temp_pool, sizeof(ngx_http_location_queue_t)); in ngx_http_add_location()
1081 node = ngx_palloc(cf->pool, in ngx_http_create_locations_tree()
1550 addr->regex = ngx_palloc(cf->pool, regex * sizeof(ngx_http_server_name_t)); in ngx_http_server_names()
1824 vn = ngx_palloc(cf->pool, sizeof(ngx_http_virtual_names_t)); in ngx_http_add_addrs()
1889 vn = ngx_palloc(cf->pool, sizeof(ngx_http_virtual_names_t)); in ngx_http_add_addrs6()

1234