shm               414 core/ngx_cycle.c         if (shm_zone[i].shm.size == 0) {
shm               417 core/ngx_cycle.c                           &shm_zone[i].shm.name);
shm               426 core/ngx_cycle.c         shm_zone[i].shm.log = cycle->log;
shm               442 core/ngx_cycle.c             if (shm_zone[i].shm.name.len != oshm_zone[n].shm.name.len) {
shm               446 core/ngx_cycle.c             if (ngx_strncmp(shm_zone[i].shm.name.data,
shm               447 core/ngx_cycle.c                             oshm_zone[n].shm.name.data,
shm               448 core/ngx_cycle.c                             shm_zone[i].shm.name.len)
shm               454 core/ngx_cycle.c             if (shm_zone[i].shm.size == oshm_zone[n].shm.size) {
shm               455 core/ngx_cycle.c                 shm_zone[i].shm.addr = oshm_zone[n].shm.addr;
shm               466 core/ngx_cycle.c             ngx_shm_free(&oshm_zone[n].shm);
shm               471 core/ngx_cycle.c         if (ngx_shm_alloc(&shm_zone[i].shm) != NGX_OK) {
shm               639 core/ngx_cycle.c             if (oshm_zone[i].shm.name.len == shm_zone[n].shm.name.len
shm               640 core/ngx_cycle.c                 && ngx_strncmp(oshm_zone[i].shm.name.data,
shm               641 core/ngx_cycle.c                                shm_zone[n].shm.name.data,
shm               642 core/ngx_cycle.c                                oshm_zone[i].shm.name.len)
shm               649 core/ngx_cycle.c         ngx_shm_free(&oshm_zone[i].shm);
shm               927 core/ngx_cycle.c     sp = (ngx_slab_pool_t *) zn->shm.addr;
shm               929 core/ngx_cycle.c     if (zn->shm.exists) {
shm               937 core/ngx_cycle.c                       &zn->shm.name, sp->addr, sp);
shm               941 core/ngx_cycle.c     sp->end = zn->shm.addr + zn->shm.size;
shm               943 core/ngx_cycle.c     sp->addr = zn->shm.addr;
shm               951 core/ngx_cycle.c     file = ngx_pnalloc(cycle->pool, cycle->lock_file.len + zn->shm.name.len);
shm               956 core/ngx_cycle.c     (void) ngx_sprintf(file, "%V%V%Z", &cycle->lock_file, &zn->shm.name);
shm              1282 core/ngx_cycle.c         if (name->len != shm_zone[i].shm.name.len) {
shm              1286 core/ngx_cycle.c         if (ngx_strncmp(name->data, shm_zone[i].shm.name.data, name->len)
shm              1292 core/ngx_cycle.c         if (size && size != shm_zone[i].shm.size) {
shm              1296 core/ngx_cycle.c                             size, &shm_zone[i].shm.name, shm_zone[i].shm.size);
shm              1304 core/ngx_cycle.c                             &shm_zone[i].shm.name);
shm              1318 core/ngx_cycle.c     shm_zone->shm.log = cf->cycle->log;
shm              1319 core/ngx_cycle.c     shm_zone->shm.size = size;
shm              1320 core/ngx_cycle.c     shm_zone->shm.name = *name;
shm              1321 core/ngx_cycle.c     shm_zone->shm.exists = 0;
shm                30 core/ngx_cycle.h     ngx_shm_t                 shm;
shm               431 event/ngx_event.c     ngx_shm_t            shm;
shm               510 event/ngx_event.c     shm.size = size;
shm               511 event/ngx_event.c     shm.name.len = sizeof("nginx_shared_zone");
shm               512 event/ngx_event.c     shm.name.data = (u_char *) "nginx_shared_zone";
shm               513 event/ngx_event.c     shm.log = cycle->log;
shm               515 event/ngx_event.c     if (ngx_shm_alloc(&shm) != NGX_OK) {
shm               519 event/ngx_event.c     shared = shm.addr;
shm              1510 event/ngx_event_openssl.c     if (shm_zone->shm.exists) {
shm              1515 event/ngx_event_openssl.c     shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
shm              1530 event/ngx_event_openssl.c     len = sizeof(" in SSL session shared cache \"\"") + shm_zone->shm.name.len;
shm              1538 event/ngx_event_openssl.c                 &shm_zone->shm.name);
shm              1592 event/ngx_event_openssl.c     shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
shm              1712 event/ngx_event_openssl.c     shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
shm              1819 event/ngx_event_openssl.c     shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
shm              2192 http/modules/ngx_http_fastcgi_module.c                            &shm_zone->shm.name);
shm               241 http/modules/ngx_http_limit_req_module.c                       excess / 1000, excess % 1000, &lrcf->shm_zone->shm.name);
shm               254 http/modules/ngx_http_limit_req_module.c                   excess / 1000, excess % 1000, &lrcf->shm_zone->shm.name);
shm               494 http/modules/ngx_http_limit_req_module.c             ngx_log_error(NGX_LOG_EMERG, shm_zone->shm.log, 0,
shm               497 http/modules/ngx_http_limit_req_module.c                           &shm_zone->shm.name, &ctx->var, &octx->var);
shm               507 http/modules/ngx_http_limit_req_module.c     ctx->shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
shm               509 http/modules/ngx_http_limit_req_module.c     if (shm_zone->shm.exists) {
shm               527 http/modules/ngx_http_limit_req_module.c     len = sizeof(" in limit_req zone \"\"") + shm_zone->shm.name.len;
shm               535 http/modules/ngx_http_limit_req_module.c                 &shm_zone->shm.name);
shm               785 http/modules/ngx_http_limit_req_module.c                            &lrcf->shm_zone->shm.name);
shm               175 http/modules/ngx_http_limit_zone_module.c     shpool = (ngx_slab_pool_t *) lzcf->shm_zone->shm.addr;
shm               211 http/modules/ngx_http_limit_zone_module.c                               &lzcf->shm_zone->shm.name);
shm               311 http/modules/ngx_http_limit_zone_module.c     shpool = (ngx_slab_pool_t *) lzcln->shm_zone->shm.addr;
shm               317 http/modules/ngx_http_limit_zone_module.c     ngx_log_debug2(NGX_LOG_DEBUG_HTTP, lzcln->shm_zone->shm.log, 0,
shm               345 http/modules/ngx_http_limit_zone_module.c             ngx_log_error(NGX_LOG_EMERG, shm_zone->shm.log, 0,
shm               348 http/modules/ngx_http_limit_zone_module.c                           &shm_zone->shm.name, &ctx->var, &octx->var);
shm               357 http/modules/ngx_http_limit_zone_module.c     shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
shm               359 http/modules/ngx_http_limit_zone_module.c     if (shm_zone->shm.exists) {
shm               380 http/modules/ngx_http_limit_zone_module.c     len = sizeof(" in limit_zone \"\"") + shm_zone->shm.name.len;
shm               388 http/modules/ngx_http_limit_zone_module.c                 &shm_zone->shm.name);
shm              1891 http/modules/ngx_http_proxy_module.c                            &shm_zone->shm.name);
shm              1217 http/modules/ngx_http_scgi_module.c                            &shm_zone->shm.name);
shm              1270 http/modules/ngx_http_uwsgi_module.c                            &shm_zone->shm.name);
shm                73 http/ngx_http_file_cache.c             ngx_log_error(NGX_LOG_EMERG, shm_zone->shm.log, 0,
shm                76 http/ngx_http_file_cache.c                           &shm_zone->shm.name, &cache->path->name,
shm                84 http/ngx_http_file_cache.c                 ngx_log_error(NGX_LOG_EMERG, shm_zone->shm.log, 0,
shm                86 http/ngx_http_file_cache.c                               &shm_zone->shm.name);
shm               105 http/ngx_http_file_cache.c     cache->shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
shm               107 http/ngx_http_file_cache.c     if (shm_zone->shm.exists) {
shm               134 http/ngx_http_file_cache.c     len = sizeof(" in cache keys zone \"\"") + shm_zone->shm.name.len;
shm               142 http/ngx_http_file_cache.c                 &shm_zone->shm.name);
shm                14 os/unix/ngx_shmem.c ngx_shm_alloc(ngx_shm_t *shm)
shm                16 os/unix/ngx_shmem.c     shm->addr = (u_char *) mmap(NULL, shm->size,
shm                20 os/unix/ngx_shmem.c     if (shm->addr == MAP_FAILED) {
shm                21 os/unix/ngx_shmem.c         ngx_log_error(NGX_LOG_ALERT, shm->log, ngx_errno,
shm                22 os/unix/ngx_shmem.c                       "mmap(MAP_ANON|MAP_SHARED, %uz) failed", shm->size);
shm                31 os/unix/ngx_shmem.c ngx_shm_free(ngx_shm_t *shm)
shm                33 os/unix/ngx_shmem.c     if (munmap((void *) shm->addr, shm->size) == -1) {
shm                34 os/unix/ngx_shmem.c         ngx_log_error(NGX_LOG_ALERT, shm->log, ngx_errno,
shm                35 os/unix/ngx_shmem.c                       "munmap(%p, %uz) failed", shm->addr, shm->size);
shm                42 os/unix/ngx_shmem.c ngx_shm_alloc(ngx_shm_t *shm)
shm                49 os/unix/ngx_shmem.c         ngx_log_error(NGX_LOG_ALERT, shm->log, ngx_errno,
shm                54 os/unix/ngx_shmem.c     shm->addr = (u_char *) mmap(NULL, shm->size, PROT_READ|PROT_WRITE,
shm                57 os/unix/ngx_shmem.c     if (shm->addr == MAP_FAILED) {
shm                58 os/unix/ngx_shmem.c         ngx_log_error(NGX_LOG_ALERT, shm->log, ngx_errno,
shm                59 os/unix/ngx_shmem.c                       "mmap(/dev/zero, MAP_SHARED, %uz) failed", shm->size);
shm                63 os/unix/ngx_shmem.c         ngx_log_error(NGX_LOG_ALERT, shm->log, ngx_errno,
shm                67 os/unix/ngx_shmem.c     return (shm->addr == MAP_FAILED) ? NGX_ERROR : NGX_OK;
shm                72 os/unix/ngx_shmem.c ngx_shm_free(ngx_shm_t *shm)
shm                74 os/unix/ngx_shmem.c     if (munmap((void *) shm->addr, shm->size) == -1) {
shm                75 os/unix/ngx_shmem.c         ngx_log_error(NGX_LOG_ALERT, shm->log, ngx_errno,
shm                76 os/unix/ngx_shmem.c                       "munmap(%p, %uz) failed", shm->addr, shm->size);
shm                87 os/unix/ngx_shmem.c ngx_shm_alloc(ngx_shm_t *shm)
shm                91 os/unix/ngx_shmem.c     id = shmget(IPC_PRIVATE, shm->size, (SHM_R|SHM_W|IPC_CREAT));
shm                94 os/unix/ngx_shmem.c         ngx_log_error(NGX_LOG_ALERT, shm->log, ngx_errno,
shm                95 os/unix/ngx_shmem.c                       "shmget(%uz) failed", shm->size);
shm                99 os/unix/ngx_shmem.c     ngx_log_debug1(NGX_LOG_DEBUG_CORE, shm->log, 0, "shmget id: %d", id);
shm               101 os/unix/ngx_shmem.c     shm->addr = shmat(id, NULL, 0);
shm               103 os/unix/ngx_shmem.c     if (shm->addr == (void *) -1) {
shm               104 os/unix/ngx_shmem.c         ngx_log_error(NGX_LOG_ALERT, shm->log, ngx_errno, "shmat() failed");
shm               108 os/unix/ngx_shmem.c         ngx_log_error(NGX_LOG_ALERT, shm->log, ngx_errno,
shm               112 os/unix/ngx_shmem.c     return (shm->addr == (void *) -1) ? NGX_ERROR : NGX_OK;
shm               117 os/unix/ngx_shmem.c ngx_shm_free(ngx_shm_t *shm)
shm               119 os/unix/ngx_shmem.c     if (shmdt(shm->addr) == -1) {
shm               120 os/unix/ngx_shmem.c         ngx_log_error(NGX_LOG_ALERT, shm->log, ngx_errno,
shm               121 os/unix/ngx_shmem.c                       "shmdt(%p) failed", shm->addr);
shm                24 os/unix/ngx_shmem.h ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
shm                25 os/unix/ngx_shmem.h void ngx_shm_free(ngx_shm_t *shm);