Lines Matching defs:tdb
138 #define TDB_HASHTABLE_SIZE(tdb) ((tdb->header.hash_size+1)*sizeof(tdb_off_t)) argument
292 enum TDB_ERROR tdb_error(struct tdb_context *tdb) in tdb_error()
311 const char *tdb_errorstr(struct tdb_context *tdb) in tdb_errorstr()
332 int tdb_brlock(struct tdb_context *tdb, tdb_off_t offset, in tdb_brlock()
379 int tdb_brlock_upgrade(struct tdb_context *tdb, tdb_off_t offset, size_t len) in tdb_brlock_upgrade()
401 static int _tdb_lock(struct tdb_context *tdb, int list, int ltype, int op) in _tdb_lock()
474 int tdb_lock(struct tdb_context *tdb, int list, int ltype) in tdb_lock()
486 int tdb_lock_nonblock(struct tdb_context *tdb, int list, int ltype) in tdb_lock_nonblock()
495 int tdb_unlock(struct tdb_context *tdb, int list, int ltype) in tdb_unlock()
582 int tdb_transaction_lock(struct tdb_context *tdb, int ltype) in tdb_transaction_lock()
600 int tdb_transaction_unlock(struct tdb_context *tdb) in tdb_transaction_unlock()
617 static int _tdb_lockall(struct tdb_context *tdb, int ltype, int op) in _tdb_lockall()
660 static int _tdb_unlockall(struct tdb_context *tdb, int ltype) in _tdb_unlockall()
694 int tdb_lockall(struct tdb_context *tdb) in tdb_lockall()
700 int tdb_lockall_mark(struct tdb_context *tdb) in tdb_lockall_mark()
706 int tdb_lockall_unmark(struct tdb_context *tdb) in tdb_lockall_unmark()
712 int tdb_lockall_nonblock(struct tdb_context *tdb) in tdb_lockall_nonblock()
718 int tdb_unlockall(struct tdb_context *tdb) in tdb_unlockall()
724 int tdb_lockall_read(struct tdb_context *tdb) in tdb_lockall_read()
730 int tdb_lockall_read_nonblock(struct tdb_context *tdb) in tdb_lockall_read_nonblock()
736 int tdb_unlockall_read(struct tdb_context *tdb) in tdb_unlockall_read()
743 int tdb_chainlock(struct tdb_context *tdb, TDB_DATA key) in tdb_chainlock()
751 int tdb_chainlock_nonblock(struct tdb_context *tdb, TDB_DATA key) in tdb_chainlock_nonblock()
757 int tdb_chainlock_mark(struct tdb_context *tdb, TDB_DATA key) in tdb_chainlock_mark()
763 int tdb_chainlock_unmark(struct tdb_context *tdb, TDB_DATA key) in tdb_chainlock_unmark()
768 int tdb_chainunlock(struct tdb_context *tdb, TDB_DATA key) in tdb_chainunlock()
773 int tdb_chainlock_read(struct tdb_context *tdb, TDB_DATA key) in tdb_chainlock_read()
778 int tdb_chainunlock_read(struct tdb_context *tdb, TDB_DATA key) in tdb_chainunlock_read()
786 int tdb_lock_record(struct tdb_context *tdb, tdb_off_t off) in tdb_lock_record()
796 int tdb_write_lock_record(struct tdb_context *tdb, tdb_off_t off) in tdb_write_lock_record()
809 int tdb_write_unlock_record(struct tdb_context *tdb, tdb_off_t off) in tdb_write_unlock_record()
815 int tdb_unlock_record(struct tdb_context *tdb, tdb_off_t off) in tdb_unlock_record()
835 static int tdb_oob(struct tdb_context *tdb, tdb_off_t len, int probe) in tdb_oob()
873 static int tdb_write(struct tdb_context *tdb, tdb_off_t off, in tdb_write()
911 static int tdb_read(struct tdb_context *tdb, tdb_off_t off, void *buf, in tdb_read()
944 static void tdb_next_hash_chain(struct tdb_context *tdb, u32 *chain) in tdb_next_hash_chain()
965 int tdb_munmap(struct tdb_context *tdb) in tdb_munmap()
981 void tdb_mmap(struct tdb_context *tdb) in tdb_mmap()
1011 static int tdb_expand_file(struct tdb_context *tdb, tdb_off_t size, tdb_off_t addition) in tdb_expand_file()
1050 int tdb_expand(struct tdb_context *tdb, tdb_off_t size) in tdb_expand()
1120 int tdb_ofs_read(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d) in tdb_ofs_read()
1125 int tdb_ofs_write(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d) in tdb_ofs_write()
1133 unsigned char *tdb_alloc_read(struct tdb_context *tdb, tdb_off_t offset, tdb_len_t len) in tdb_alloc_read()
1158 int tdb_parse_data(struct tdb_context *tdb, TDB_DATA key, in tdb_parse_data()
1191 int tdb_rec_read(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec) in tdb_rec_read()
1204 int tdb_rec_write(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec) in tdb_rec_write()
1222 void tdb_io_init(struct tdb_context *tdb) in tdb_io_init()
1335 static int transaction_read(struct tdb_context *tdb, tdb_off_t off, void *buf, in transaction_read()
1396 static int transaction_write(struct tdb_context *tdb, tdb_off_t off, in transaction_write()
1520 static void transaction_next_hash_chain(struct tdb_context *tdb, u32 *chain) in transaction_next_hash_chain()
1535 static int transaction_oob(struct tdb_context *tdb, tdb_off_t len, int probe) in transaction_oob()
1546 static int transaction_expand_file(struct tdb_context *tdb, tdb_off_t size, in transaction_expand_file()
1561 static int transaction_brlock(struct tdb_context *tdb, tdb_off_t offset, in transaction_brlock()
1581 int tdb_transaction_start(struct tdb_context *tdb) in tdb_transaction_start()
1688 int tdb_transaction_cancel(struct tdb_context *tdb) in tdb_transaction_cancel()
1743 static int transaction_sync(struct tdb_context *tdb, tdb_off_t offset, tdb_len_t length) in transaction_sync()
1769 static tdb_len_t tdb_recovery_size(struct tdb_context *tdb) in tdb_recovery_size()
1789 static int tdb_recovery_allocate(struct tdb_context *tdb, in tdb_recovery_allocate()
1870 static int transaction_setup_recovery(struct tdb_context *tdb, in transaction_setup_recovery()
1979 int tdb_transaction_commit(struct tdb_context *tdb) in tdb_transaction_commit()
2132 int tdb_transaction_recover(struct tdb_context *tdb) in tdb_transaction_recover()
2257 static int tdb_rec_free_read(struct tdb_context *tdb, tdb_off_t off, struct list_struct *rec) in tdb_rec_free_read()
2287 static int remove_from_freelist(struct tdb_context *tdb, tdb_off_t off, tdb_off_t next) in remove_from_freelist()
2307 static int update_tailer(struct tdb_context *tdb, tdb_off_t offset, in update_tailer()
2320 int tdb_free(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec) in tdb_free()
2422 static tdb_off_t tdb_allocate_ofs(struct tdb_context *tdb, tdb_len_t length, tdb_off_t rec_ptr, in tdb_allocate_ofs()
2483 tdb_off_t tdb_allocate(struct tdb_context *tdb, tdb_len_t length, struct list_struct *rec) in tdb_allocate()
2577 int tdb_validate_freelist(struct tdb_context *tdb, int *pnum_entries) in tdb_validate_freelist()
2643 static int tdb_next_lock(struct tdb_context *tdb, struct tdb_traverse_lock *tlock, in tdb_next_lock()
2750 static int tdb_traverse_internal(struct tdb_context *tdb, in tdb_traverse_internal()
2814 int tdb_traverse_read(struct tdb_context *tdb, in tdb_traverse_read()
2839 int tdb_traverse(struct tdb_context *tdb, in tdb_traverse()
2862 TDB_DATA tdb_firstkey(struct tdb_context *tdb) in tdb_firstkey()
2887 TDB_DATA tdb_nextkey(struct tdb_context *tdb, TDB_DATA oldkey) in tdb_nextkey()
2948 static tdb_off_t tdb_dump_record(struct tdb_context *tdb, int hash, in tdb_dump_record()
2979 static int tdb_dump_chain(struct tdb_context *tdb, int i) in tdb_dump_chain()
3001 void tdb_dump_all(struct tdb_context *tdb) in tdb_dump_all()
3011 int tdb_printfreelist(struct tdb_context *tdb) in tdb_printfreelist()
3062 void tdb_increment_seqnum_nonblock(struct tdb_context *tdb) in tdb_increment_seqnum_nonblock()
3082 static void tdb_increment_seqnum(struct tdb_context *tdb) in tdb_increment_seqnum()
3104 static tdb_off_t tdb_find(struct tdb_context *tdb, TDB_DATA key, u32 hash, in tdb_find()
3131 tdb_off_t tdb_find_lock_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash, int locktype, in tdb_find_lock_hash()
3148 static int tdb_update_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash, TDB_DATA dbuf) in tdb_update_hash()
3182 TDB_DATA tdb_fetch(struct tdb_context *tdb, TDB_DATA key) in tdb_fetch()
3217 int tdb_parse_record(struct tdb_context *tdb, TDB_DATA key, in tdb_parse_record()
3248 static int tdb_exists_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash) in tdb_exists_hash()
3258 int tdb_exists(struct tdb_context *tdb, TDB_DATA key) in tdb_exists()
3265 int tdb_do_delete(struct tdb_context *tdb, tdb_off_t rec_ptr, struct list_struct*rec) in tdb_do_delete()
3299 static int tdb_count_dead(struct tdb_context *tdb, u32 hash) in tdb_count_dead()
3324 static int tdb_purge_dead(struct tdb_context *tdb, u32 hash) in tdb_purge_dead()
3360 static int tdb_delete_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash) in tdb_delete_hash()
3412 int tdb_delete(struct tdb_context *tdb, TDB_DATA key) in tdb_delete()
3421 static tdb_off_t tdb_find_dead(struct tdb_context *tdb, u32 hash, in tdb_find_dead()
3452 int tdb_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA dbuf, int flag) in tdb_store()
3591 int tdb_append(struct tdb_context *tdb, TDB_DATA key, TDB_DATA new_dbuf) in tdb_append()
3636 const char *tdb_name(struct tdb_context *tdb) in tdb_name()
3646 int tdb_fd(struct tdb_context *tdb) in tdb_fd()
3655 tdb_log_func tdb_log_fn(struct tdb_context *tdb) in tdb_log_fn()
3671 int tdb_get_seqnum(struct tdb_context *tdb) in tdb_get_seqnum()
3679 int tdb_hash_size(struct tdb_context *tdb) in tdb_hash_size()
3684 size_t tdb_map_size(struct tdb_context *tdb) in tdb_map_size()
3689 int tdb_get_flags(struct tdb_context *tdb) in tdb_get_flags()
3698 void tdb_enable_seqnum(struct tdb_context *tdb) in tdb_enable_seqnum()
3724 static int tdb_new_database(struct tdb_context *tdb, int hash_size) in tdb_new_database()
3801 static void null_log_fn(struct tdb_context *tdb, enum tdb_debug_level level, const char *fmt, ...) in null_log_fn()
3811 struct tdb_context *tdb; in tdb_open_ex() local
4003 void tdb_set_max_dead(struct tdb_context *tdb, int max_dead) in tdb_set_max_dead()
4013 int tdb_close(struct tdb_context *tdb) in tdb_close()
4048 void tdb_set_logging_function(struct tdb_context *tdb, in tdb_set_logging_function()
4054 void *tdb_get_logging_private(struct tdb_context *tdb) in tdb_get_logging_private()
4061 int tdb_reopen(struct tdb_context *tdb) in tdb_reopen()
4115 struct tdb_context *tdb; in tdb_reopen_all() local