Lines Matching refs:TDB_DATA
242 unsigned int (*hash_fn)(TDB_DATA *key);
279 static int tdb_parse_data(struct tdb_context *tdb, TDB_DATA key,
281 int (*parser)(TDB_DATA key, TDB_DATA data,
284 static tdb_off_t tdb_find_lock_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash, int locktype,
745 int tdb_chainlock(struct tdb_context *tdb, TDB_DATA key)
753 int tdb_chainlock_nonblock(struct tdb_context *tdb, TDB_DATA key)
759 int tdb_chainlock_mark(struct tdb_context *tdb, TDB_DATA key)
765 int tdb_chainlock_unmark(struct tdb_context *tdb, TDB_DATA key)
770 int tdb_chainunlock(struct tdb_context *tdb, TDB_DATA key)
775 int tdb_chainlock_read(struct tdb_context *tdb, TDB_DATA key)
780 int tdb_chainunlock_read(struct tdb_context *tdb, TDB_DATA key)
1160 int tdb_parse_data(struct tdb_context *tdb, TDB_DATA key,
1162 int (*parser)(TDB_DATA key, TDB_DATA data,
1166 TDB_DATA data;
2571 TDB_DATA key, data;
2756 TDB_DATA key, dbuf;
2864 TDB_DATA tdb_firstkey(struct tdb_context *tdb)
2866 TDB_DATA key;
2889 TDB_DATA tdb_nextkey(struct tdb_context *tdb, TDB_DATA oldkey)
2892 TDB_DATA key = tdb_null;
3060 TDB_DATA tdb_null;
3101 static int tdb_key_compare(TDB_DATA key, TDB_DATA data, void *private_data)
3108 static tdb_off_t tdb_find(struct tdb_context *tdb, TDB_DATA key, u32 hash,
3135 tdb_off_t tdb_find_lock_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash, int locktype,
3152 static int tdb_update_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash, TDB_DATA dbuf)
3183 * then the TDB_DATA will have zero length but
3186 TDB_DATA tdb_fetch(struct tdb_context *tdb, TDB_DATA key)
3190 TDB_DATA ret;
3221 int tdb_parse_record(struct tdb_context *tdb, TDB_DATA key,
3222 int (*parser)(TDB_DATA key, TDB_DATA data,
3252 static int tdb_exists_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash)
3262 int tdb_exists(struct tdb_context *tdb, TDB_DATA key)
3364 static int tdb_delete_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash)
3416 int tdb_delete(struct tdb_context *tdb, TDB_DATA key)
3456 int tdb_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA dbuf, int flag)
3595 int tdb_append(struct tdb_context *tdb, TDB_DATA key, TDB_DATA new_dbuf)
3598 TDB_DATA dbuf;
3714 static unsigned int default_tdb_hash(TDB_DATA *key)