Motr  M0
domain.c File Reference
#include "lib/trace.h"
#include "stob/domain.h"
#include "lib/memory.h"
#include "lib/string.h"
#include "lib/errno.h"
#include "stob/type.h"
#include "stob/cache.h"
#include "stob/stob_internal.h"
#include "stob/stob.h"
Include dependency graph for domain.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_STOB
 

Enumerations

enum  { M0_STOB_CACHE_MAX_SIZE = 0x10 }
 

Functions

static int stob_domain_type (const char *location, struct m0_stob_type **type)
 
static char * stob_domain_location_data (const char *location)
 
static void stob_domain_cache_evict_cb (struct m0_stob_cache *cache, struct m0_stob *stob)
 
static int stob_domain_create (struct m0_stob_type *type, const char *location_data, uint64_t dom_key, const char *str_cfg_create)
 
static int stob_domain_init (struct m0_stob_type *type, const char *location_data, const char *str_cfg_init, struct m0_stob_domain **out)
 
static int stob_domain_init_create (const char *location, const char *str_cfg_init, uint64_t dom_key, const char *str_cfg_create, struct m0_stob_domain **out, bool init)
 
M0_INTERNAL int m0_stob_domain_init (const char *location, const char *str_cfg_init, struct m0_stob_domain **out)
 
M0_INTERNAL void m0_stob_domain_fini (struct m0_stob_domain *dom)
 
M0_INTERNAL int m0_stob_domain_create (const char *location, const char *str_cfg_init, uint64_t dom_key, const char *str_cfg_create, struct m0_stob_domain **out)
 
M0_INTERNAL int m0_stob_domain_destroy (struct m0_stob_domain *dom)
 
M0_INTERNAL int m0_stob_domain_destroy_location (const char *location)
 
M0_INTERNAL int m0_stob_domain_create_or_init (const char *location, const char *str_cfg_init, uint64_t dom_key, const char *str_cfg_create, struct m0_stob_domain **out)
 
M0_INTERNAL struct m0_stob_domainm0_stob_domain_find (const struct m0_fid *dom_id)
 
M0_INTERNAL struct m0_stob_domainm0_stob_domain_find_by_location (const char *location)
 
M0_INTERNAL struct m0_stob_domainm0_stob_domain_find_by_stob_id (const struct m0_stob_id *stob_id)
 
M0_INTERNAL const struct m0_fidm0_stob_domain_id_get (const struct m0_stob_domain *dom)
 
M0_INTERNAL const char * m0_stob_domain_location_get (const struct m0_stob_domain *dom)
 
M0_INTERNAL void m0_stob_domain__id_set (struct m0_stob_domain *dom, struct m0_fid *dom_id)
 
M0_INTERNAL uint8_t m0_stob_domain__type_id (const struct m0_fid *dom_id)
 
M0_INTERNAL uint64_t m0_stob_domain__dom_key (const struct m0_fid *dom_id)
 
M0_INTERNAL void m0_stob_domain__dom_id_make (struct m0_fid *dom_id, uint8_t type_id, uint64_t dom_container, uint64_t dom_key)
 
M0_INTERNAL bool m0_stob_domain__invariant (struct m0_stob_domain *dom)
 
M0_INTERNAL bool m0_stob_domain__dom_key_is_valid (uint64_t dom_key)
 
M0_INTERNAL bool m0_stob_domain_is_of_type (const struct m0_stob_domain *dom, const struct m0_stob_type *dt)
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_STOB

Definition at line 23 of file domain.c.