Motr  M0
cache.h File Reference
#include "lib/mutex.h"
#include "lib/tlist.h"
#include "lib/types.h"
#include "fid/fid.h"
Include dependency graph for cache.h:

Go to the source code of this file.

Data Structures

struct  m0_stob_cache
 

Macros

#define __MOTR_STOB_CACHE_H__
 

Typedefs

typedef void(* m0_stob_cache_eviction_cb_t) (struct m0_stob_cache *cache, struct m0_stob *stob)
 

Functions

M0_INTERNAL int m0_stob_cache_init (struct m0_stob_cache *cache, uint64_t idle_size, m0_stob_cache_eviction_cb_t eviction_cb)
 
M0_INTERNAL void m0_stob_cache_fini (struct m0_stob_cache *cache)
 
M0_INTERNAL bool m0_stob_cache__invariant (const struct m0_stob_cache *cache)
 
M0_INTERNAL void m0_stob_cache_add (struct m0_stob_cache *cache, struct m0_stob *stob)
 
M0_INTERNAL void m0_stob_cache_idle (struct m0_stob_cache *cache, struct m0_stob *stob)
 
M0_INTERNAL struct m0_stobm0_stob_cache_lookup (struct m0_stob_cache *cache, const struct m0_fid *stob_fid)
 
M0_INTERNAL void m0_stob_cache_purge (struct m0_stob_cache *cache, int nr)
 
M0_INTERNAL void m0_stob_cache_lock (struct m0_stob_cache *cache)
 
M0_INTERNAL void m0_stob_cache_unlock (struct m0_stob_cache *cache)
 
M0_INTERNAL bool m0_stob_cache_is_locked (const struct m0_stob_cache *cache)
 
M0_INTERNAL bool m0_stob_cache_is_not_locked (const struct m0_stob_cache *cache)
 
M0_INTERNAL void m0_stob_cache__print (struct m0_stob_cache *cache)
 

Macro Definition Documentation

◆ __MOTR_STOB_CACHE_H__

#define __MOTR_STOB_CACHE_H__

Definition at line 26 of file cache.h.