Lines Matching refs:region
65 /* Grab the values that we need to compute the region size. */
80 /* Join/create the lock region. */
100 /* Now set up the pointer to the region. */
101 lt->region = lt->reginfo.addr;
103 /* Initialize the region if we created it. */
105 lt->region->maxlocks = maxlocks;
106 lt->region->nmodes = lock_modes;
107 if ((ret = __lock_tabinit(dbenv, lt->region)) != 0)
110 /* Check for an unexpected region. */
111 if (lt->region->magic != DB_LOCKMAGIC) {
121 if (lt->region->detect != DB_LOCK_NORUN &&
123 lt->region->detect != dbenv->lk_detect) {
129 if (lt->region->detect == DB_LOCK_NORUN)
130 lt->region->detect = dbenv->lk_detect;
133 /* Set up remaining pointers into region. */
134 lt->conflicts = (u_int8_t *)lt->region + sizeof(DB_LOCKREGION);
136 (DB_HASHTAB *)((u_int8_t *)lt->region + lt->region->hash_off);
137 lt->mem = (void *)((u_int8_t *)lt->region + lt->region->mem_off);
158 * Panic a lock region.
167 dbenv->lk_info->region->hdr.panic = 1;
173 * Initialize the lock region.
198 * the region.
212 * As we write the region, we've got to maintain the alignment
308 * Called at every interface to verify if the region has changed size,
309 * and if so, to remap the region in and reset the process' pointers.
319 if (lt->reginfo.size == lt->region->hdr.size)
322 /* Detach/reattach the region. */
323 if ((ret = __db_rreattach(<->reginfo, lt->region->hdr.size)) != 0)
326 /* Reset region information. */
327 lt->region = lt->reginfo.addr;
335 * We have run out of space; time to grow the region.
356 lrp = lt->region;
367 * different type of "thing" in the region. Then partition the
416 * aligned. We did not guarantee this when we created the region, so
417 * we may need to pad the old region by extra bytes to ensure this
423 "Growing lock region: %lu locks %lu objs %lu bytes",
428 lt->region = lt->reginfo.addr;
431 /* Update region parameters. */
432 lrp = lt->region;
467 lt->conflicts = (u_int8_t *)lt->region + sizeof(DB_LOCKREGION);
469 (DB_HASHTAB *)((u_int8_t *)lt->region + lt->region->hash_off);
470 lt->mem = (void *)((u_int8_t *)lt->region + lt->region->mem_off);
496 rp = lt->region;
552 #define LOCK_DUMP_MEM 0x008 /* Display region memory. */
599 lrp = lt->region;
601 fprintf(fp, "%s\nLock region parameters\n", DB_LINE);