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

tosdb memory backend implementation More...

#include <tosdb/tosdb.h>
#include <tosdb/tosdb_internal.h>
#include <tosdb/tosdb_backend.h>
#include <logging.h>

Classes

struct  tosdb_backend_disk_ctx_t
 

Typedefs

typedef struct tosdb_backend_disk_ctx_t tosdb_backend_disk_ctx_t
 

Functions

 MODULE ("turnstone.kernel.db")
 
uint8_ttosdb_backend_disk_read (tosdb_backend_t *backend, uint64_t position, uint64_t size)
 
uint64_t tosdb_backend_disk_write (tosdb_backend_t *backend, uint64_t position, uint64_t size, uint8_t *data)
 
boolean_t tosdb_backend_disk_flush (tosdb_backend_t *backend)
 
tosdb_backend_ttosdb_backend_disk_new (disk_or_partition_t *dp)
 creates new tosdb disk backend More...
 
boolean_t tosdb_backend_disk_close (tosdb_backend_t *backend)
 

Detailed Description

tosdb memory backend implementation

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

Function Documentation

◆ tosdb_backend_disk_new()

tosdb_backend_t * tosdb_backend_disk_new ( disk_or_partition_t dp)

creates new tosdb disk backend

Parameters
[in]dpdisk or partition
Returns
disk backend