Turnstone Operating System
Loading...
Searching...
No Matches
tosdb.64.c File Reference

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_ttosdb_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_ttosdb_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...
 

Detailed Description

tosdb interface implementation

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Function Documentation

◆ tosdb_cache_config_set()

boolean_t tosdb_cache_config_set ( tosdb_t tdb,
tosdb_cache_config_t config 
)

sets tosdb cache config

Parameters
[in]tdbtosdb instance
[in]configtosdb cache config
Returns
true if cache config can be setted

◆ tosdb_close()

boolean_t tosdb_close ( tosdb_t tdb)

closes a tosdb

Parameters
[in]tdbtosdb
Returns
true if succeed.

◆ tosdb_free()

boolean_t tosdb_free ( tosdb_t tdb)

frees a tosdb

Parameters
[in]tdbtosdb
Returns
true if succeed.

◆ tosdb_new()

tosdb_t * tosdb_new ( tosdb_backend_t backend,
compression_type_t  compression_type_if_not_exists 
)

creates tosdb

Parameters
[in]backendstorage backend
Returns
new tosdb