Motr  M0
seg_dict.c File Reference
#include "lib/trace.h"
#include "be/seg_dict.h"
#include "lib/errno.h"
#include "lib/finject.h"
#include "lib/string.h"
#include "motr/magic.h"
#include "be/alloc.h"
#include "be/op.h"
#include "be/seg.h"
#include "be/seg_internal.h"
#include "be/tx.h"
Include dependency graph for seg_dict.c:

Go to the source code of this file.

Data Structures

struct  be_seg_dict_keyval
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE
 

Functions

 M0_BE_LIST_DESCR_DEFINE (be_seg_dict, "be_seg_dict", static, struct be_seg_dict_keyval, dkv_link, dkv_magic, M0_BE_SEG_DICT_MAGIC, M0_BE_SEG_DICT_HEAD_MAGIC)
 
 M0_BE_LIST_DEFINE (be_seg_dict, static, struct be_seg_dict_keyval)
 
static struct m0_be_listbe_seg_dict_get (const struct m0_be_seg *seg)
 
static void be_seg_dict_kv_get (const struct be_seg_dict_keyval *kv)
 
static void be_seg_dict_kv_put (const struct be_seg_dict_keyval *kv)
 
static struct be_seg_dict_keyvalbe_seg_dict_find (struct m0_be_seg *seg, const char *user_key, bool(*compare)(const char *dict_key, const char *user_key))
 
static bool be_seg_dict_kv_eq (const char *dict_key, const char *user_key)
 
M0_INTERNAL void m0_be_seg_dict_insert_credit (struct m0_be_seg *seg, const char *name, struct m0_be_tx_credit *accum)
 
M0_INTERNAL void m0_be_seg_dict_delete_credit (struct m0_be_seg *seg, const char *name, struct m0_be_tx_credit *accum)
 
M0_INTERNAL void m0_be_seg_dict_create_credit (struct m0_be_seg *seg, struct m0_be_tx_credit *accum)
 
M0_INTERNAL void m0_be_seg_dict_destroy_credit (struct m0_be_seg *seg, struct m0_be_tx_credit *accum)
 
M0_INTERNAL void m0_be_seg_dict_init (struct m0_be_seg *seg)
 
M0_INTERNAL void m0_be_seg_dict_fini (struct m0_be_seg *seg)
 
M0_INTERNAL int m0_be_seg_dict_lookup (struct m0_be_seg *seg, const char *name, void **out)
 
static bool be_seg_dict_kv_begin (const char *dict_key, const char *user_key)
 
static bool be_seg_dict_kv_next (const char *dict_key, const char *user_key)
 
static int be_seg_dict_iterate (struct m0_be_seg *seg, const char *prefix, const char *start_key, const char **this_key, void **this_rec, bool(*compare)(const char *dict_key, const char *user_key))
 
M0_INTERNAL int m0_be_seg_dict_begin (struct m0_be_seg *seg, const char *start_key, const char **this_key, void **this_rec)
 
M0_INTERNAL int m0_be_seg_dict_next (struct m0_be_seg *seg, const char *prefix, const char *start_key, const char **this_key, void **this_rec)
 
M0_INTERNAL int m0_be_seg_dict_insert (struct m0_be_seg *seg, struct m0_be_tx *tx, const char *name, void *value)
 
M0_INTERNAL int m0_be_seg_dict_delete (struct m0_be_seg *seg, struct m0_be_tx *tx, const char *name)
 
M0_INTERNAL void m0_be_seg_dict_create (struct m0_be_seg *seg, struct m0_be_tx *tx)
 
M0_INTERNAL void m0_be_seg_dict_destroy (struct m0_be_seg *seg, struct m0_be_tx *tx)
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE

Definition at line 23 of file seg_dict.c.