Lines Matching defs:slotmem
50 /* The description of the slots to reuse the slotmem */
81 /* global pool and list of slotmem we are handling */
85 #define DEFAULT_SLOTMEM_PREFIX "slotmem-shm-"
90 * Persist the slotmem in a file
91 * slotmem name and file name.
141 static void store_slotmem(ap_slotmem_instance_t *slotmem)
149 storename = slotmem_filename(slotmem->gpool, slotmem->name, 1);
156 APR_OS_DEFAULT, slotmem->gpool);
158 apr_file_remove(storename, slotmem->gpool);
160 APR_OS_DEFAULT, slotmem->gpool);
165 if (AP_SLOTMEM_IS_CLEARINUSE(slotmem)) {
166 slotmem_clearinuse(slotmem);
168 nbytes = (slotmem->desc.size * slotmem->desc.num) +
169 (slotmem->desc.num * sizeof(char)) + AP_UNSIGNEDINT_OFFSET;
170 apr_md5(digest, slotmem->persist, nbytes);
171 rv = apr_file_write_full(fp, slotmem->persist, nbytes, NULL);
177 apr_file_remove(storename, slotmem->gpool);
298 /* void *slotmem = NULL; */
317 /* first try to attach to existing slotmem */
416 /* For the chained slotmem stuff */
448 /* void *slotmem = NULL; */
468 /* first try to attach to existing slotmem */
495 /* Read the description of the slotmem */
500 /* For the chained slotmem stuff */
648 "slotmem(%s) grab failed. Num %u/num_free %u",
669 "slotmem(%s) fgrab failed. Num %u/num_free %u",
696 "slotmem(%s) release failed. Num %u/inuse[%u] %d",