Searched refs:shm (Results 1 - 20 of 20) sorted by relevance

/tldk/app/nginx/src/os/win32/
H A Dngx_shmem.c45 ngx_shm_alloc(ngx_shm_t *shm) argument
51 name = ngx_alloc(shm->name.len + 2 + NGX_INT32_LEN, shm->log);
56 (void) ngx_sprintf(name, "%V_%s%Z", &shm->name, ngx_unique);
60 size = shm->size;
62 shm->handle = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE,
67 if (shm->handle == NULL) {
68 ngx_log_error(NGX_LOG_ALERT, shm->log, ngx_errno,
70 shm->size, name);
79 shm
124 ngx_shm_remap(ngx_shm_t *shm, u_char *addr) argument
148 ngx_shm_free(ngx_shm_t *shm) argument
[all...]
H A Dngx_shmem.h26 ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
27 ngx_int_t ngx_shm_remap(ngx_shm_t *shm, u_char *addr);
28 void ngx_shm_free(ngx_shm_t *shm);
/tldk/app/nginx/src/os/unix/
H A Dngx_shmem.c15 ngx_shm_alloc(ngx_shm_t *shm) argument
17 shm->addr = (u_char *) mmap(NULL, shm->size,
21 if (shm->addr == MAP_FAILED) {
22 ngx_log_error(NGX_LOG_ALERT, shm->log, ngx_errno,
23 "mmap(MAP_ANON|MAP_SHARED, %uz) failed", shm->size);
32 ngx_shm_free(ngx_shm_t *shm) argument
34 if (munmap((void *) shm->addr, shm->size) == -1) {
35 ngx_log_error(NGX_LOG_ALERT, shm
43 ngx_shm_alloc(ngx_shm_t *shm) argument
73 ngx_shm_free(ngx_shm_t *shm) argument
88 ngx_shm_alloc(ngx_shm_t *shm) argument
118 ngx_shm_free(ngx_shm_t *shm) argument
[all...]
H A Dngx_shmem.h25 ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
26 void ngx_shm_free(ngx_shm_t *shm);
H A Dngx_process.c582 sp = (ngx_slab_pool_t *) shm_zone[i].shm.addr;
587 &shm_zone[i].shm.name, pid);
/tldk/app/nginx/src/core/
H A Dngx_cycle.c420 if (shm_zone[i].shm.size == 0) {
423 &shm_zone[i].shm.name);
427 shm_zone[i].shm.log = cycle->log;
443 if (shm_zone[i].shm.name.len != oshm_zone[n].shm.name.len) {
447 if (ngx_strncmp(shm_zone[i].shm.name.data,
448 oshm_zone[n].shm.name.data,
449 shm_zone[i].shm.name.len)
456 && shm_zone[i].shm.size == oshm_zone[n].shm
[all...]
H A Dngx_cycle.h31 ngx_shm_t shm; member in struct:ngx_shm_zone_s
/tldk/app/nginx/src/http/modules/
H A Dngx_http_upstream_zone_module.c128 shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
132 if (shm_zone->shm.exists) {
149 len = sizeof(" in upstream zone \"\"") + shm_zone->shm.name.len;
157 &shm_zone->shm.name);
H A Dngx_http_limit_conn_module.c186 shpool = (ngx_slab_pool_t *) limits[i].shm_zone->shm.addr;
225 &limits[i].shm_zone->shm.name);
347 shpool = (ngx_slab_pool_t *) lccln->shm_zone->shm.addr;
353 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, lccln->shm_zone->shm.log, 0,
401 ngx_log_error(NGX_LOG_EMERG, shm_zone->shm.log, 0,
404 &shm_zone->shm.name, &ctx->key.value,
414 shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
416 if (shm_zone->shm.exists) {
437 len = sizeof(" in limit_conn_zone \"\"") + shm_zone->shm.name.len;
445 &shm_zone->shm
[all...]
H A Dngx_http_limit_req_module.c235 &limit->shm_zone->shm.name);
271 excess / 1000, excess % 1000, &limit->shm_zone->shm.name);
625 ngx_log_error(NGX_LOG_EMERG, shm_zone->shm.log, 0,
628 &shm_zone->shm.name, &ctx->key.value,
639 ctx->shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
641 if (shm_zone->shm.exists) {
659 len = sizeof(" in limit_req zone \"\"") + shm_zone->shm.name.len;
667 &shm_zone->shm.name);
H A Dngx_http_scgi_module.c1456 &shm_zone->shm.name);
H A Dngx_http_uwsgi_module.c1670 &shm_zone->shm.name);
H A Dngx_http_fastcgi_module.c3011 &shm_zone->shm.name);
H A Dngx_http_proxy_module.c3120 &shm_zone->shm.name);
/tldk/app/nginx/src/stream/
H A Dngx_stream_upstream_zone_module.c125 shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
129 if (shm_zone->shm.exists) {
146 len = sizeof(" in upstream zone \"\"") + shm_zone->shm.name.len;
154 &shm_zone->shm.name);
H A Dngx_stream_limit_conn_module.c164 shpool = (ngx_slab_pool_t *) limits[i].shm_zone->shm.addr;
203 &limits[i].shm_zone->shm.name);
326 shpool = (ngx_slab_pool_t *) lccln->shm_zone->shm.addr;
332 ngx_log_debug2(NGX_LOG_DEBUG_STREAM, lccln->shm_zone->shm.log, 0,
380 ngx_log_error(NGX_LOG_EMERG, shm_zone->shm.log, 0,
383 &shm_zone->shm.name, &ctx->key.value,
393 shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
395 if (shm_zone->shm.exists) {
416 len = sizeof(" in limit_conn_zone \"\"") + shm_zone->shm.name.len;
424 &shm_zone->shm
[all...]
/tldk/app/nginx/src/event/
H A Dngx_event.c429 ngx_shm_t shm; local
502 shm.size = size;
503 ngx_str_set(&shm.name, "nginx_shared_zone");
504 shm.log = cycle->log;
506 if (ngx_shm_alloc(&shm) != NGX_OK) {
510 shared = shm.addr;
H A Dngx_event_openssl.c2383 shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
2385 if (shm_zone->shm.exists) {
2403 len = sizeof(" in SSL session shared cache \"\"") + shm_zone->shm.name.len;
2411 &shm_zone->shm.name);
2468 shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
2622 shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
2733 shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
/tldk/app/nginx/src/http/
H A Dngx_http_file_cache.c95 ngx_log_error(NGX_LOG_EMERG, shm_zone->shm.log, 0,
98 &shm_zone->shm.name, &cache->path->name,
106 ngx_log_error(NGX_LOG_EMERG, shm_zone->shm.log, 0,
108 &shm_zone->shm.name);
127 cache->shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
129 if (shm_zone->shm.exists) {
158 len = sizeof(" in cache keys zone \"\"") + shm_zone->shm.name.len;
166 &shm_zone->shm.name);
H A Dngx_http_upstream.c998 name = &caches[i]->shm_zone->shm.name;

Completed in 29 milliseconds