Home
last modified time | relevance | path

Searched refs:shm_zone (Results 1 – 25 of 26) sorted by relevance

12

/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_limit_conn_module.c226 lccln->shm_zone = limits[i].shm_zone; in ngx_stream_limit_conn_handler()
325 ctx = lccln->shm_zone->data; in ngx_stream_limit_conn_cleanup()
372 ctx = shm_zone->data; in ngx_stream_limit_conn_init_zone()
395 if (shm_zone->shm.exists) { in ngx_stream_limit_conn_init_zone()
549 if (shm_zone == NULL) { in ngx_stream_limit_conn_zone()
553 if (shm_zone->data) { in ngx_stream_limit_conn_zone()
554 ctx = shm_zone->data; in ngx_stream_limit_conn_zone()
563 shm_zone->data = ctx; in ngx_stream_limit_conn_zone()
584 if (shm_zone == NULL) { in ngx_stream_limit_conn()
600 if (shm_zone == limits[i].shm_zone) { in ngx_stream_limit_conn()
[all …]
H A Dngx_stream_upstream_zone_module.c102 uscf->shm_zone = ngx_shared_memory_add(cf, &value[1], size, in ngx_stream_upstream_zone()
104 if (uscf->shm_zone == NULL) { in ngx_stream_upstream_zone()
108 uscf->shm_zone->init = ngx_stream_upstream_init_zone; in ngx_stream_upstream_zone()
109 uscf->shm_zone->data = umcf; in ngx_stream_upstream_zone()
111 uscf->shm_zone->noreuse = 1; in ngx_stream_upstream_zone()
127 shpool = (ngx_slab_pool_t *) shm_zone->shm.addr; in ngx_stream_upstream_init_zone()
128 umcf = shm_zone->data; in ngx_stream_upstream_init_zone()
131 if (shm_zone->shm.exists) { in ngx_stream_upstream_init_zone()
137 if (uscf->shm_zone != shm_zone) { in ngx_stream_upstream_init_zone()
156 &shm_zone->shm.name); in ngx_stream_upstream_init_zone()
[all …]
H A Dngx_stream_ssl_module.c784 if (conf->shm_zone == NULL) { in ngx_stream_ssl_merge_conf()
785 conf->shm_zone = prev->shm_zone; in ngx_stream_ssl_merge_conf()
790 conf->shm_zone, conf->session_timeout) in ngx_stream_ssl_merge_conf()
1008 scf->shm_zone = ngx_shared_memory_add(cf, &name, n, in ngx_stream_ssl_session_cache()
1010 if (scf->shm_zone == NULL) { in ngx_stream_ssl_session_cache()
1014 scf->shm_zone->init = ngx_ssl_session_cache_init; in ngx_stream_ssl_session_cache()
1022 if (scf->shm_zone && scf->builtin_session_cache == NGX_CONF_UNSET) { in ngx_stream_ssl_session_cache()
H A Dngx_stream_ssl_module.h50 ngx_shm_zone_t *shm_zone; member
H A Dngx_stream_upstream.h85 ngx_shm_zone_t *shm_zone; member
H A Dngx_stream_upstream_random_module.c106 if (us->shm_zone) { in ngx_stream_upstream_init_random()
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_limit_conn_module.c248 lccln->shm_zone = limits[i].shm_zone; in ngx_http_limit_conn_handler()
346 ctx = lccln->shm_zone->data; in ngx_http_limit_conn_cleanup()
393 ctx = shm_zone->data; in ngx_http_limit_conn_init_zone()
416 if (shm_zone->shm.exists) { in ngx_http_limit_conn_init_zone()
573 if (shm_zone == NULL) { in ngx_http_limit_conn_zone()
577 if (shm_zone->data) { in ngx_http_limit_conn_zone()
578 ctx = shm_zone->data; in ngx_http_limit_conn_zone()
587 shm_zone->data = ctx; in ngx_http_limit_conn_zone()
608 if (shm_zone == NULL) { in ngx_http_limit_conn()
624 if (shm_zone == limits[i].shm_zone) { in ngx_http_limit_conn()
[all …]
H A Dngx_http_upstream_zone_module.c15 static ngx_int_t ngx_http_upstream_init_zone(ngx_shm_zone_t *shm_zone,
107 if (uscf->shm_zone == NULL) { in ngx_http_upstream_zone()
111 uscf->shm_zone->init = ngx_http_upstream_init_zone; in ngx_http_upstream_zone()
112 uscf->shm_zone->data = umcf; in ngx_http_upstream_zone()
114 uscf->shm_zone->noreuse = 1; in ngx_http_upstream_zone()
130 shpool = (ngx_slab_pool_t *) shm_zone->shm.addr; in ngx_http_upstream_init_zone()
131 umcf = shm_zone->data; in ngx_http_upstream_init_zone()
134 if (shm_zone->shm.exists) { in ngx_http_upstream_init_zone()
140 if (uscf->shm_zone != shm_zone) { in ngx_http_upstream_init_zone()
159 &shm_zone->shm.name); in ngx_http_upstream_init_zone()
[all …]
H A Dngx_http_limit_req_module.c373 ctx = limit->shm_zone->data; in ngx_http_limit_req_lookup()
638 ctx = shm_zone->data; in ngx_http_limit_req_init_zone()
662 if (shm_zone->shm.exists) { in ngx_http_limit_req_init_zone()
853 if (shm_zone == NULL) { in ngx_http_limit_req_zone()
857 if (shm_zone->data) { in ngx_http_limit_req_zone()
858 ctx = shm_zone->data; in ngx_http_limit_req_zone()
867 shm_zone->data = ctx; in ngx_http_limit_req_zone()
886 shm_zone = NULL; in ngx_http_limit_req()
940 if (shm_zone == NULL) { in ngx_http_limit_req()
959 if (shm_zone == limits[i].shm_zone) { in ngx_http_limit_req()
[all …]
H A Dngx_http_ssl_module.c816 if (conf->shm_zone == NULL) { in ngx_http_ssl_merge_srv_conf()
817 conf->shm_zone = prev->shm_zone; in ngx_http_ssl_merge_srv_conf()
822 conf->shm_zone, conf->session_timeout) in ngx_http_ssl_merge_srv_conf()
1074 sscf->shm_zone = ngx_shared_memory_add(cf, &name, n, in ngx_http_ssl_session_cache()
1076 if (sscf->shm_zone == NULL) { in ngx_http_ssl_session_cache()
1080 sscf->shm_zone->init = ngx_ssl_session_cache_init; in ngx_http_ssl_session_cache()
1088 if (sscf->shm_zone && sscf->builtin_session_cache == NGX_CONF_UNSET) { in ngx_http_ssl_session_cache()
H A Dngx_http_ssl_module.h52 ngx_shm_zone_t *shm_zone; member
H A Dngx_http_upstream_random_module.c108 if (us->shm_zone) { in ngx_http_upstream_init_random()
H A Dngx_http_scgi_module.c1462 ngx_shm_zone_t *shm_zone; in ngx_http_scgi_merge_loc_conf() local
1464 shm_zone = conf->upstream.cache_zone; in ngx_http_scgi_merge_loc_conf()
1468 &shm_zone->shm.name); in ngx_http_scgi_merge_loc_conf()
H A Dngx_http_uwsgi_module.c1683 ngx_shm_zone_t *shm_zone; in ngx_http_uwsgi_merge_loc_conf() local
1685 shm_zone = conf->upstream.cache_zone; in ngx_http_uwsgi_merge_loc_conf()
1689 &shm_zone->shm.name); in ngx_http_uwsgi_merge_loc_conf()
H A Dngx_http_fastcgi_module.c2988 ngx_shm_zone_t *shm_zone; in ngx_http_fastcgi_merge_loc_conf() local
2990 shm_zone = conf->upstream.cache_zone; in ngx_http_fastcgi_merge_loc_conf()
2994 &shm_zone->shm.name); in ngx_http_fastcgi_merge_loc_conf()
H A Dngx_http_proxy_module.c3140 ngx_shm_zone_t *shm_zone; in ngx_http_proxy_merge_loc_conf() local
3142 shm_zone = conf->upstream.cache_zone; in ngx_http_proxy_merge_loc_conf()
3146 &shm_zone->shm.name); in ngx_http_proxy_merge_loc_conf()
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_cycle.c15 ngx_shm_zone_t *shm_zone);
407 shm_zone = part->elts; in ngx_init_cycle()
464 if (shm_zone[i].init(&shm_zone[i], oshm_zone[n].data) in ngx_init_cycle()
484 if (shm_zone[i].init(&shm_zone[i], NULL) != NGX_OK) { in ngx_init_cycle()
849 shm_zone = part->elts; in ngx_init_cycle()
1286 shm_zone = part->elts; in ngx_shared_memory_add()
1325 size, &shm_zone[i].shm.name, shm_zone[i].shm.size); in ngx_shared_memory_add()
1338 shm_zone->data = NULL; in ngx_shared_memory_add()
1344 shm_zone->init = NULL; in ngx_shared_memory_add()
1345 shm_zone->tag = tag; in ngx_shared_memory_add()
[all …]
/f-stack/app/nginx-1.16.1/src/mail/
H A Dngx_mail_ssl_module.c434 if (conf->shm_zone == NULL) { in ngx_mail_ssl_merge_conf()
435 conf->shm_zone = prev->shm_zone; in ngx_mail_ssl_merge_conf()
440 conf->shm_zone, conf->session_timeout) in ngx_mail_ssl_merge_conf()
630 scf->shm_zone = ngx_shared_memory_add(cf, &name, n, in ngx_mail_ssl_session_cache()
632 if (scf->shm_zone == NULL) { in ngx_mail_ssl_session_cache()
636 scf->shm_zone->init = ngx_ssl_session_cache_init; in ngx_mail_ssl_session_cache()
644 if (scf->shm_zone && scf->builtin_session_cache == NGX_CONF_UNSET) { in ngx_mail_ssl_session_cache()
H A Dngx_mail_ssl_module.h52 ngx_shm_zone_t *shm_zone; member
/f-stack/app/nginx-1.16.1/src/os/unix/
H A Dngx_process.c568 ngx_shm_zone_t *shm_zone; in ngx_unlock_mutexes() local
587 shm_zone = part->elts; in ngx_unlock_mutexes()
596 shm_zone = part->elts; in ngx_unlock_mutexes()
600 sp = (ngx_slab_pool_t *) shm_zone[i].shm.addr; in ngx_unlock_mutexes()
605 &shm_zone[i].shm.name, pid); in ngx_unlock_mutexes()
/f-stack/app/nginx-1.16.1/src/event/
H A Dngx_event_openssl.c3097 if (shm_zone) { in ngx_ssl_session_cache()
3240 shm_zone->data = data; in ngx_ssl_session_cache_init()
3246 if (shm_zone->shm.exists) { in ngx_ssl_session_cache_init()
3247 shm_zone->data = shpool->data; in ngx_ssl_session_cache_init()
3257 shm_zone->data = cache; in ngx_ssl_session_cache_init()
3272 &shm_zone->shm.name); in ngx_ssl_session_cache_init()
3305 ngx_shm_zone_t *shm_zone; in ngx_ssl_new_session() local
3328 cache = shm_zone->data; in ngx_ssl_new_session()
3480 cache = shm_zone->data; in ngx_ssl_get_cached_session()
3575 if (shm_zone == NULL) { in ngx_ssl_remove_session()
[all …]
H A Dngx_event_openssl.h196 ngx_shm_zone_t *shm_zone, time_t timeout);
199 ngx_int_t ngx_ssl_session_cache_init(ngx_shm_zone_t *shm_zone, void *data);
/f-stack/app/nginx-1.16.1/src/http/
H A Dngx_http_file_cache.c83 ngx_http_file_cache_init(ngx_shm_zone_t *shm_zone, void *data) in ngx_http_file_cache_init() argument
91 cache = shm_zone->data; in ngx_http_file_cache_init()
95 ngx_log_error(NGX_LOG_EMERG, shm_zone->shm.log, 0, in ngx_http_file_cache_init()
108 &shm_zone->shm.name); in ngx_http_file_cache_init()
127 cache->shpool = (ngx_slab_pool_t *) shm_zone->shm.addr; in ngx_http_file_cache_init()
129 if (shm_zone->shm.exists) { in ngx_http_file_cache_init()
167 &shm_zone->shm.name); in ngx_http_file_cache_init()
2592 if (cache->shm_zone == NULL) { in ngx_http_file_cache_set_slot()
2596 if (cache->shm_zone->data) { in ngx_http_file_cache_set_slot()
2603 cache->shm_zone->init = ngx_http_file_cache_init; in ngx_http_file_cache_set_slot()
[all …]
H A Dngx_http_cache.h180 ngx_shm_zone_t *shm_zone; member
H A Dngx_http_upstream.h135 ngx_shm_zone_t *shm_zone; member

12