Turnstone Operating System
|
tosdb interface implementation More...
#include <tosdb/tosdb.h>
#include <tosdb/tosdb_internal.h>
#include <tosdb/tosdb_backend.h>
#include <tosdb/tosdb_cache.h>
#include <buffer.h>
#include <cpu/sync.h>
#include <logging.h>
#include <strings.h>
#include <xxhash.h>
#include <zpack.h>
#include <deflate.h>
Functions | |
MODULE ("turnstone.kernel.db") | |
tosdb_t * | tosdb_new (tosdb_backend_t *backend, compression_type_t compression_type_if_not_exists) |
creates tosdb More... | |
boolean_t | tosdb_load_databases (tosdb_t *tdb) |
boolean_t | tosdb_close (tosdb_t *tdb) |
closes a tosdb More... | |
boolean_t | tosdb_free (tosdb_t *tdb) |
frees a tosdb More... | |
tosdb_block_header_t * | tosdb_block_read (tosdb_t *tdb, uint64_t location, uint64_t size) |
uint64_t | tosdb_block_write (tosdb_t *tdb, tosdb_block_header_t *block) |
boolean_t | tosdb_persist (tosdb_t *tdb) |
boolean_t | tosdb_cache_config_set (tosdb_t *tdb, tosdb_cache_config_t *config) |
sets tosdb cache config More... | |
tosdb interface implementation
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.
boolean_t tosdb_cache_config_set | ( | tosdb_t * | tdb, |
tosdb_cache_config_t * | config | ||
) |
sets tosdb cache config
[in] | tdb | tosdb instance |
[in] | config | tosdb cache config |
boolean_t tosdb_close | ( | tosdb_t * | tdb | ) |
closes a tosdb
[in] | tdb | tosdb |
boolean_t tosdb_free | ( | tosdb_t * | tdb | ) |
frees a tosdb
[in] | tdb | tosdb |
tosdb_t * tosdb_new | ( | tosdb_backend_t * | backend, |
compression_type_t | compression_type_if_not_exists | ||
) |
creates tosdb
[in] | backend | storage backend |