Home
last modified time | relevance | path

Searched refs:__db_lock (Results 1 – 5 of 5) sorted by relevance

/titanic_41/usr/src/cmd/sendmail/db/lock/
H A Dlock.c31 static void __lock_checklocker __P((DB_LOCKTAB *, struct __db_lock *, int));
34 u_int32_t, const DBT *, db_lockmode_t, struct __db_lock **));
37 static int __lock_put_internal __P((DB_LOCKTAB *, struct __db_lock *, int));
39 __P((DB_LOCKTAB *, DB_LOCKOBJ *, struct __db_lock *, db_status_t));
94 struct __db_lock *lp;
142 for (lp = SH_LIST_FIRST(&sh_locker->heldby, __db_lock);
144 lp = SH_LIST_FIRST(&sh_locker->heldby, __db_lock)) {
145 SH_LIST_REMOVE(lp, locker_links, __db_lock);
147 locker_links, __db_lock);
170 for (lp = SH_LIST_FIRST(&sh_locker->heldby, __db_lock);
[all …]
H A Dlock_region.c180 struct __db_lock *lp;
241 curaddr += ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT)) {
242 lp = (struct __db_lock *)curaddr;
244 SH_TAILQ_INSERT_HEAD(tq_head, lp, links, __db_lock);
345 struct __db_lock *newl;
371 usedlocks * ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT) +
375 ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT) / (float)used;
379 incr / ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT));
383 newlocks * ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT));
393 incr += newlocks * sizeof(struct __db_lock);
[all …]
H A Dlock_deadlock.c197 struct __db_lock *lp;
289 for (lp = SH_TAILQ_FIRST(&op->holders, __db_lock);
291 lp = SH_TAILQ_NEXT(lp, links, __db_lock)) {
314 lp = SH_TAILQ_FIRST(&op->waiters, __db_lock);
317 lp = SH_TAILQ_NEXT(lp, links, __db_lock)) {
359 lp = SH_LIST_FIRST(&lockerp->heldby, __db_lock);
420 struct __db_lock *lockp;
433 lockp = SH_LIST_FIRST(&lockerp->heldby, __db_lock);
454 SH_LIST_REMOVE(lockp, locker_links, __db_lock);
456 SH_TAILQ_REMOVE(&sh_obj->waiters, lockp, links, __db_lock);
/titanic_41/usr/src/cmd/sendmail/db/include/
H A Dlock.h131 struct __db_lock { struct
167 ((struct __db_lock *)((u_int8_t *)((lt)->region) + (off))) argument
193 (N) * ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT) + \
H A Dlock_ext.h6 void __lock_printlock __P((DB_LOCKTAB *, struct __db_lock *, int));