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

/httpd/modules/experimental/
H A Dmod_noloris.c53 static apr_shm_t *shm; variable
63 if (shm == NULL) {
68 shm_rec = apr_shm_baseaddr_get(shm);
104 if (shm == NULL) {
138 /* reset shm before writing to it.
142 shm_rec = apr_shm_baseaddr_get(shm);
169 rv = apr_shm_create(&shm, shm_size, NULL, pconf);
172 "Failed to create shm segment; mod_noloris disabled");
174 shm = NULL;
/httpd/modules/slotmem/
H A Dmod_slotmem_shm.c37 #include <sys/shm.h>
63 void *shm; /* ptr to memory segment (apr_shm_t *) */ member in struct:ap_slotmem_instance_t
85 #define DEFAULT_SLOTMEM_PREFIX "slotmem-shm-"
86 #define DEFAULT_SLOTMEM_SUFFIX ".shm"
257 apr_shm_destroy((apr_shm_t *)next->shm);
306 apr_shm_t *shm; local
346 rv = apr_shm_attach(&shm, fname, gpool);
356 if (apr_shm_size_get(shm) != size) {
357 apr_shm_detach(shm);
363 ptr = (char *)apr_shm_baseaddr_get(shm);
454 apr_shm_t *shm; local
[all...]
/httpd/include/
H A Dscoreboard.h75 * children, so they do not require shm storage, the contents of the shm
172 AP_DECLARE(apr_status_t) ap_reopen_scoreboard(apr_pool_t *p, apr_shm_t **shm, int detached);
/httpd/modules/proxy/
H A Dproxy_util.c1215 proxy_balancer_shared *shm,
1221 if (!shm || !balancer->s)
1224 if ((balancer->s->hash.def != shm->hash.def) ||
1225 (balancer->s->hash.fnv != shm->hash.fnv)) {
1226 memcpy(shm, balancer->s, sizeof(proxy_balancer_shared));
1232 balancer->s = shm;
1235 "%s shm[%d] (0x%pp) for %s", action, i, (void *)shm,
1273 * mutex and then attach to the shared worker shm
1728 * if called during config, we don't have shm setu
3151 proxy_worker_shared *shm; local
3236 proxy_worker_shared *shm; local
3257 proxy_balancer_shared *shm; local
[all...]
H A Dmod_proxy_balancer.c26 static const char *balancer_mutex_type = "proxy-balancer-shm";
744 storage = ap_lookup_provider(AP_SLOTMEM_PROVIDER_GROUP, "shm",
748 "Failed to lookup provider 'shm' for '%s': is "
838 /* setup shm for balancers */
883 proxy_worker_shared *shm; local
887 shm = ap_proxy_find_workershm(storage, balancer->wslot, worker, &index);
888 if (shm) {
900 if ((rv = storage->dptr(balancer->wslot, index, (void *)&shm)) != APR_SUCCESS) {
905 if ((rv = ap_proxy_share_worker(worker, shm, index)) != APR_SUCCESS) {
1188 proxy_worker_shared *shm; local
[all...]
H A Dmod_proxy.h168 ap_slotmem_instance_t *bslot; /* balancers shm data - runtime */
316 /* Some max char string sizes, for shm fields */
363 int index; /* shm array index */
435 int index; /* shm array index */
458 ap_slotmem_instance_t *wslot; /* worker shm data - runtime */
466 apr_thread_mutex_t *tmutex; /* Thread lock for updating shm */
675 * Share a defined proxy worker via shm
677 * @param shm location of shared info
678 * @param i index into shm
682 proxy_worker_shared *shm,
[all...]
/httpd/modules/cache/
H A Dmod_socache_shmcb.c106 apr_shm_t *shm; member in struct:ap_socache_instance_t
359 /* Use anonymous shm by default, fall back on name-based. */
360 rv = apr_shm_create(&ctx->shm, ctx->shm_size, NULL, p);
362 /* If anon shm isn't supported, fail if no named file was
376 rv = apr_shm_create(&ctx->shm, ctx->shm_size, ctx->data_file, p);
386 shm_segment = apr_shm_baseaddr_get(ctx->shm);
387 shm_segsize = apr_shm_size_get(ctx->shm);
472 if (ctx && ctx->shm) {
473 apr_shm_destroy(ctx->shm);
474 ctx->shm
[all...]
/httpd/server/
H A Dscoreboard.c257 AP_DECLARE(apr_status_t) ap_reopen_scoreboard(apr_pool_t *p, apr_shm_t **shm,
272 if (*shm) {
273 *shm = ap_scoreboard_shm;
/httpd/test/
H A Dtime-sem.c439 #include <sys/shm.h>

Completed in 3389 milliseconds