Lines Matching refs:ltype
288 static int tdb_lock(TDB_CONTEXT *tdb, int list, int ltype)
291 TDB_LOG((tdb, 0,"tdb_lock: invalid list %d for ltype=%d\n",
292 list, ltype));
302 if (tdb_spinlock(tdb, list, ltype)) {
303 TDB_LOG((tdb, 0, "tdb_lock spinlock failed on list %d ltype=%d\n",
304 list, ltype));
307 } else if (tdb_brlock(tdb,FREELIST_TOP+4*list,ltype,F_SETLKW, 0)) {
308 TDB_LOG((tdb, 0,"tdb_lock failed on list %d ltype=%d (%s)\n",
309 list, ltype, strerror(errno)));
312 tdb->locked[list+1].ltype = ltype;
321 static int tdb_unlock(TDB_CONTEXT *tdb, int list, int ltype)
342 ret = tdb_spinunlock(tdb, list, ltype);