Lines Matching refs:F_RDLCK
415 (ltype == tdb->global_lock.ltype || ltype == F_RDLCK)) { in _tdb_lock()
510 (ltype == tdb->global_lock.ltype || ltype == F_RDLCK)) { in tdb_unlock()
730 return _tdb_lockall(tdb, F_RDLCK, F_SETLKW); in tdb_lockall_read()
736 return _tdb_lockall(tdb, F_RDLCK, F_SETLK); in tdb_lockall_read_nonblock()
742 return _tdb_unlockall(tdb, F_RDLCK); in tdb_unlockall_read()
779 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read()
784 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainunlock_read()
792 return off ? tdb->methods->tdb_brlock(tdb, off, F_RDLCK, F_SETLKW, 0, 1) : 0; in tdb_lock_record()
1640 if (tdb_brlock(tdb, FREELIST_TOP, F_RDLCK, F_SETLKW, 0, 0) == -1) { in tdb_transaction_start()
2824 struct tdb_traverse_lock tl = { NULL, 0, 0, F_RDLCK }; in tdb_traverse_read()
2829 if (tdb_transaction_lock(tdb, F_RDLCK)) { in tdb_traverse_read()
2878 tdb->travlocks.lock_rw = F_RDLCK; in tdb_firstkey()
3198 if (!(rec_ptr = tdb_find_lock_hash(tdb,key,hash,F_RDLCK,&rec))) in tdb_fetch()
3204 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK); in tdb_fetch()
3237 if (!(rec_ptr = tdb_find_lock_hash(tdb,key,hash,F_RDLCK,&rec))) { in tdb_parse_record()
3244 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK); in tdb_parse_record()
3259 if (tdb_find_lock_hash(tdb, key, hash, F_RDLCK, &rec) == 0) in tdb_exists_hash()
3261 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK); in tdb_exists_hash()
3965 if (tdb->methods->tdb_brlock(tdb, ACTIVE_LOCK, F_RDLCK, F_SETLKW, 0, 1) == -1) in tdb_open_ex()
4098 (tdb->methods->tdb_brlock(tdb, ACTIVE_LOCK, F_RDLCK, F_SETLKW, 0, 1) == -1)) { in tdb_reopen()