Motr  M0
cache.c File Reference
#include "lib/trace.h"
#include "conf/cache.h"
#include "conf/obj_ops.h"
#include "conf/preload.h"
#include "motr/magic.h"
#include "conf/onwire.h"
#include "lib/errno.h"
#include "lib/memory.h"
Include dependency graph for cache.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CONF
 

Functions

 M0_TL_DESCR_DEFINE (m0_conf_cache, "registered m0_conf_obj-s",, struct m0_conf_obj, co_cache_link, co_gen_magic, M0_CONF_OBJ_MAGIC, M0_CONF_CACHE_MAGIC)
 
 M0_TL_DEFINE (m0_conf_cache, M0_INTERNAL, struct m0_conf_obj)
 
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_init (struct m0_conf_cache *cache, struct m0_mutex *lock)
 
M0_INTERNAL int m0_conf_cache_add (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)
 
static void _obj_del (struct m0_conf_obj *obj)
 
M0_INTERNAL void m0_conf_cache_del (const struct m0_conf_cache *cache, struct m0_conf_obj *obj)
 
static void conf_cache_clean (struct m0_conf_cache *cache, const struct m0_conf_obj_type *type, bool gc)
 
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 void m0_conf_cache_fini (struct m0_conf_cache *cache)
 
static int conf_encode (struct m0_confx *enc, const struct m0_conf_obj *obj, bool debug)
 
static int conf_cache_encode (const struct m0_conf_cache *cache, struct m0_confx *dest, bool debug)
 
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

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CONF

Definition at line 23 of file cache.c.