Motr  M0
type.c File Reference
#include "stob/type.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "lib/tlist.h"
#include "motr/magic.h"
#include "stob/domain.h"
#include "stob/module.h"
#include "stob/null.h"
#include "lib/string.h"
#include "stob/linux.h"
#include "stob/ad.h"
#include "stob/perf.h"
#include "lib/trace.h"
Include dependency graph for type.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_STOB
 

Functions

 M0_TL_DESCR_DEFINE (domains, "stob domains", static, struct m0_stob_domain, sd_domain_linkage, sd_magic, M0_STOB_DOMAINS_MAGIC, M0_STOB_DOMAINS_HEAD_MAGIC)
 
 M0_TL_DEFINE (domains, static, struct m0_stob_domain)
 
 M0_TL_DESCR_DEFINE (types, "stob types", static, struct m0_stob_type, st_type_linkage, st_magic, M0_STOB_TYPES_MAGIC, M0_STOB_TYPES_HEAD_MAGIC)
 
 M0_TL_DEFINE (types, static, struct m0_stob_type)
 
static int stob_type_copy (const struct m0_stob_type *type, struct m0_stob_type **copy)
 
static void stob_types_destroy_list (struct m0_stob_types *types)
 
static struct m0_stob_typesstob_types_get (void)
 
M0_INTERNAL int m0_stob_types_init (void)
 
M0_INTERNAL void m0_stob_types_fini (void)
 
M0_INTERNAL struct m0_stob_typem0_stob_type_by_dom_id (const struct m0_fid *id)
 
M0_INTERNAL struct m0_stob_typem0_stob_type_by_name (const char *name)
 
M0_INTERNAL uint8_t m0_stob_type_id_by_name (const char *name)
 
M0_INTERNAL void m0_stob_type_register (struct m0_stob_type *type)
 
M0_INTERNAL void m0_stob_type_deregister (struct m0_stob_type *type)
 
M0_INTERNAL uint8_t m0_stob_type_id_get (const struct m0_stob_type *type)
 
M0_INTERNAL const char * m0_stob_type_name_get (struct m0_stob_type *type)
 
M0_INTERNAL void m0_stob_type__dom_add (struct m0_stob_type *type, struct m0_stob_domain *dom)
 
M0_INTERNAL void m0_stob_type__dom_del (struct m0_stob_type *type, struct m0_stob_domain *dom)
 
M0_INTERNAL struct m0_stob_domainm0_stob_type__dom_find (struct m0_stob_type *type, const struct m0_fid *dom_id)
 
M0_INTERNAL struct m0_stob_domainm0_stob_type__dom_find_by_location (struct m0_stob_type *type, const char *location)
 

Variables

static const struct m0_stob_typestob_types_reg []
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_STOB

Definition at line 41 of file type.c.