Motr  M0
cache.h File Reference
#include "conf/obj.h"
#include "lib/tlist.h"
Include dependency graph for cache.h:

Go to the source code of this file.

Data Structures

struct  m0_conf_cache
 

Macros

#define __MOTR_CONF_CACHE_H__
 

Enumerations

enum  m0_conf_version { M0_CONF_VER_UNKNOWN = 0, M0_CONF_VER_TEMP = ~0 }
 
enum  { M0_CONF_PATH_MAX = 15 }
 

Functions

 M0_TL_DESCR_DECLARE (m0_conf_cache, extern)
 
 M0_TL_DECLARE (m0_conf_cache, M0_INTERNAL, struct m0_conf_obj)
 
M0_INTERNAL void m0_conf_cache_init (struct m0_conf_cache *cache, struct m0_mutex *lock)
 
M0_INTERNAL void m0_conf_cache_fini (struct m0_conf_cache *cache)
 
M0_INTERNAL void m0_conf_cache_lock (struct m0_conf_cache *cache)
 
M0_INTERNAL void m0_conf_cache_unlock (struct m0_conf_cache *cache)
 
M0_INTERNAL bool m0_conf_cache_is_locked (const struct m0_conf_cache *cache)
 
M0_INTERNAL void m0_conf_cache_clean (struct m0_conf_cache *cache, const struct m0_conf_obj_type *type)
 
M0_INTERNAL void m0_conf_cache_gc (struct m0_conf_cache *cache)
 
M0_INTERNAL int m0_conf_cache_add (struct m0_conf_cache *cache, struct m0_conf_obj *obj)
 
M0_INTERNAL void m0_conf_cache_del (const struct m0_conf_cache *cache, struct m0_conf_obj *obj)
 
M0_INTERNAL bool m0_conf_cache_contains (struct m0_conf_cache *cache, const struct m0_fid *fid)
 
M0_INTERNAL struct m0_conf_objm0_conf_cache_lookup (const struct m0_conf_cache *cache, const struct m0_fid *id)
 
M0_INTERNAL int m0_conf_cache_to_string (struct m0_conf_cache *cache, char **str, bool debug)
 
M0_INTERNAL int m0_conf_cache_from_string (struct m0_conf_cache *cache, const char *str)
 
M0_INTERNAL int m0_conf_version (struct m0_conf_cache *cache)
 
M0_INTERNAL struct m0_conf_objm0_conf_cache_pinned (const struct m0_conf_cache *cache)
 

Macro Definition Documentation

◆ __MOTR_CONF_CACHE_H__

#define __MOTR_CONF_CACHE_H__

Definition at line 24 of file cache.h.

Function Documentation

◆ M0_TL_DECLARE()

M0_TL_DECLARE ( m0_conf_cache  ,
M0_INTERNAL  ,
struct m0_conf_obj   
)

◆ M0_TL_DESCR_DECLARE()

M0_TL_DESCR_DECLARE ( m0_conf_cache  ,
extern   
)