Motr  M0
stob.c File Reference
#include "lib/trace.h"
#include "lib/misc.h"
#include "lib/arith.h"
#include "lib/errno.h"
#include "lib/assert.h"
#include "lib/memory.h"
#include "lib/string.h"
#include "lib/types.h"
#include "motr/magic.h"
#include "stob/type.h"
#include "stob/domain.h"
#include "stob/stob.h"
#include "stob/stob_internal.h"
#include "stob/stob_xc.h"
Include dependency graph for stob.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_STOB
 

Functions

M0_INTERNAL struct m0_stob_cachem0_stob_domain__cache (struct m0_stob_domain *dom)
 
M0_INTERNAL struct m0_stobm0_stob_domain__stob_alloc (struct m0_stob_domain *dom, const struct m0_fid *stob_fid)
 
M0_INTERNAL void m0_stob_domain__stob_free (struct m0_stob_domain *dom, struct m0_stob *stob)
 
M0_INTERNAL int m0_stob_find_by_key (struct m0_stob_domain *dom, const struct m0_fid *stob_fid, struct m0_stob **out)
 
M0_INTERNAL int m0_stob_find (const struct m0_stob_id *id, struct m0_stob **out)
 
M0_INTERNAL int m0_stob_lookup_by_key (struct m0_stob_domain *dom, const struct m0_fid *stob_fid, struct m0_stob **out)
 
M0_INTERNAL int m0_stob_lookup (const struct m0_stob_id *id, struct m0_stob **out)
 
M0_INTERNAL int m0_stob_locate (struct m0_stob *stob)
 
M0_INTERNAL void m0_stob_create_credit (struct m0_stob_domain *dom, struct m0_be_tx_credit *accum)
 
M0_INTERNAL int m0_stob_create (struct m0_stob *stob, struct m0_dtx *dtx, const char *str_cfg)
 
M0_INTERNAL void m0_stob_destroy_credit (struct m0_stob *stob, struct m0_be_tx_credit *accum)
 
M0_INTERNAL void m0_stob_delete_mark (struct m0_stob *stob)
 
M0_INTERNAL int m0_stob_destroy (struct m0_stob *stob, struct m0_dtx *dtx)
 
M0_INTERNAL int m0_stob_punch_credit (struct m0_stob *stob, struct m0_indexvec *want, struct m0_indexvec *got, struct m0_be_tx_credit *accum)
 
M0_INTERNAL int m0_stob_punch (struct m0_stob *stob, struct m0_indexvec *range, struct m0_dtx *dtx)
 
M0_INTERNAL uint64_t m0_stob_dom_id_get (struct m0_stob *stob)
 
M0_INTERNAL const struct m0_stob_idm0_stob_id_get (struct m0_stob *stob)
 
M0_INTERNAL const struct m0_fidm0_stob_fid_get (struct m0_stob *stob)
 
M0_INTERNAL uint64_t m0_stob_id_dom_id_get (const struct m0_stob_id *stob_id)
 
M0_INTERNAL enum m0_stob_state m0_stob_state_get (struct m0_stob *stob)
 
M0_INTERNAL uint32_t m0_stob_block_shift (struct m0_stob *stob)
 
M0_INTERNAL void m0_stob_get (struct m0_stob *stob)
 
M0_INTERNAL void m0_stob_put (struct m0_stob *stob)
 
M0_INTERNAL void m0_stob__id_set (struct m0_stob *stob, const struct m0_fid *stob_fid)
 
M0_INTERNAL void m0_stob__cache_evict (struct m0_stob *stob)
 
M0_INTERNAL void m0_stob__state_set (struct m0_stob *stob, enum m0_stob_state state)
 
M0_INTERNAL struct m0_stob_domainm0_stob_dom_get (struct m0_stob *stob)
 
M0_INTERNAL void m0_stob_id_make (uint64_t container, uint64_t key, const struct m0_fid *dom_id, struct m0_stob_id *stob_id)
 
M0_INTERNAL bool m0_stob_id_eq (const struct m0_stob_id *stob_id0, const struct m0_stob_id *stob_id1)
 
M0_INTERNAL int m0_stob_fd (struct m0_stob *stob)
 
M0_INTERNAL int m0_stob_mod_init (void)
 
M0_INTERNAL void m0_stob_mod_fini (void)
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_STOB

Definition at line 22 of file stob.c.