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

cache interface implementation More...

#include <cache.h>
#include <cpu/sync.h>
#include <memory.h>
#include <logging.h>

Classes

struct  cache_item_t
 
struct  cache_t
 

Typedefs

typedef struct cache_item_t cache_item_t
 

Functions

 MODULE ("turnstone.lib")
 
static int8_t cache_insert_head (cache_t *cache, boolean_t mru, cache_item_t *ci)
 
static int8_t cache_delete_item (cache_t *cache, boolean_t mru, cache_item_t *ci)
 
static int8_t cache_move_to_head (cache_t *cache, boolean_t mru, cache_item_t *ci)
 
cache_tcache_new (cache_config_t *config)
 
boolean_t cache_destroy (cache_t *cache)
 
static boolean_t cache_put_ci (cache_t *cache, cache_item_t *ci)
 
boolean_t cache_put (cache_t *cache, const void *key, const void *item, uint64_t size)
 
const void * cache_get (cache_t *cache, const void *key)
 

Detailed Description

cache interface implementation

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