Lines Matching refs:region
15 #define DB_LOCK_DEFAULT_N 5000 /* Default # of locks in region. */
25 /* Check for region catastrophic shutdown. */
27 if ((lt)->region->hdr.panic) \
32 * The lock region consists of:
41 RLAYOUT hdr; /* Shared region header. */
54 size_t increment; /* how much to grow region */
56 size_t mem_off; /* offset of memory region */
57 size_t mem_bytes; /* number of bytes in memory region */
64 /* Macros to lock/unlock the region. */
66 (void)__db_mutex_lock(&(lt)->region->hdr.lock, (lt)->reginfo.fd)
68 (void)__db_mutex_unlock(&(lt)->region->hdr.lock, (lt)->reginfo.fd)
113 DB_LOCKREGION *region; /* Address of shared memory region. */
121 T->conflicts[HELD * T->region->nmodes + WANTED]
124 * Resources in the lock region. Used to indicate which resource
125 * is running low when we need to grow the region.
155 * to it, so we use the offset within the region. As nothing lives at region
163 * so we return offsets in the region. These must be converted to and from
167 ((struct __db_lock *)((u_int8_t *)((lt)->region) + (off)))
169 ((size_t)((u_int8_t *)(lock) - (u_int8_t *)lt->region))
171 ((DB_LOCKOBJ *)((u_int8_t *)((lt)->region) + (off)))
173 ((size_t)((u_int8_t *)(obj) - (u_int8_t *)lt->region))
176 * The lock header contains the region structure and the conflict matrix.
185 * For the full region, we need to add the locks, the objects, the hash table