Motr  M0
seg0.c File Reference
#include <stdio.h>
#include "be/alloc.h"
#include "be/domain.h"
#include "be/op.h"
#include "be/seg0.h"
#include "be/seg.h"
#include "lib/mutex.h"
#include "lib/buf.h"
#include "lib/trace.h"
Include dependency graph for seg0.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE
 

Functions

static bool be_0type_invariant (const struct m0_be_0type *zt)
 
static bool dom_is_locked (const struct m0_be_domain *dom)
 
static void keyname_format (const struct m0_be_0type *zt, const char *suffix, char *keyname, size_t keyname_len)
 
static struct m0_be_segbe_0type_seg0_get (struct m0_be_domain *dom)
 
void m0_be_0type_register (struct m0_be_domain *dom, struct m0_be_0type *zt)
 
void m0_be_0type_unregister (struct m0_be_domain *dom, struct m0_be_0type *zt)
 
int m0_be_0type_add (struct m0_be_0type *zt, struct m0_be_domain *dom, struct m0_be_tx *tx, const char *suffix, const struct m0_buf *data)
 
int m0_be_0type_del (struct m0_be_0type *zt, struct m0_be_domain *dom, struct m0_be_tx *tx, const char *suffix)
 
void m0_be_0type_add_credit (struct m0_be_domain *dom, const struct m0_be_0type *zt, const char *suffix, const struct m0_buf *data, struct m0_be_tx_credit *credit)
 
void m0_be_0type_del_credit (struct m0_be_domain *dom, const struct m0_be_0type *zt, const char *suffix, struct m0_be_tx_credit *credit)
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE

Definition at line 33 of file seg0.c.

Function Documentation

◆ be_0type_invariant()

static bool be_0type_invariant ( const struct m0_be_0type zt)
static

Definition at line 36 of file seg0.c.

Here is the caller graph for this function:

◆ be_0type_seg0_get()

static struct m0_be_seg* be_0type_seg0_get ( struct m0_be_domain dom)
static

Definition at line 54 of file seg0.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dom_is_locked()

static bool dom_is_locked ( const struct m0_be_domain dom)
static

Definition at line 43 of file seg0.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ keyname_format()

static void keyname_format ( const struct m0_be_0type zt,
const char *  suffix,
char *  keyname,
size_t  keyname_len 
)
static

Definition at line 48 of file seg0.c.

Here is the caller graph for this function: