Motr  M0
sit.c File Reference
#include "lib/trace.h"
#include "lib/chan.h"
#include "lib/types.h"
#include "lib/assert.h"
#include "lib/arith.h"
#include "lib/memory.h"
#include "lib/errno.h"
#include "stob/stob.h"
#include "stob/io.h"
#include "motr/magic.h"
#include "xcode/xcode.h"
#include "addb2/addb2.h"
#include "addb2/consumer.h"
#include "addb2/internal.h"
#include "addb2/identifier.h"
#include "addb2/storage.h"
#include "addb2/storage_xc.h"
Include dependency graph for sit.c:

Go to the source code of this file.

Data Structures

struct  m0_addb2_sit
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_ADDB
 

Functions

static bool header_is_valid (const struct m0_addb2_sit *it, const struct m0_addb2_frame_header *h)
 
static int it_init (struct m0_addb2_sit *it, struct m0_addb2_frame_header *h, m0_bindex_t start)
 
static int it_alloc (struct m0_addb2_sit *it, struct m0_stob *stob)
 
static void it_free (struct m0_addb2_sit *it)
 
static int it_next (struct m0_addb2_sit *it, struct m0_addb2_record **out)
 
static void it_rec (struct m0_addb2_sit *it, struct m0_addb2_record **out)
 
static int it_load (struct m0_addb2_sit *it)
 
static int it_read (const struct m0_addb2_sit *it, void *buf, m0_bindex_t offset, m0_bcount_t count)
 
static bool it_rounded (const struct m0_addb2_sit *it, m0_bindex_t index)
 
static bool it_is_in (const struct m0_addb2_sit *it, m0_bindex_t index)
 
static bool it_invariant (const struct m0_addb2_sit *it)
 
static void it_trace_set (struct m0_addb2_sit *it)
 
static int header_read (struct m0_addb2_sit *it, struct m0_addb2_frame_header *h, m0_bindex_t offset)
 
static m0_bindex_t header_next (const struct m0_addb2_sit *it, const struct m0_addb2_frame_header *h)
 
int m0_addb2_sit_init (struct m0_addb2_sit **out, struct m0_stob *stob, m0_bindex_t start)
 
void m0_addb2_sit_fini (struct m0_addb2_sit *it)
 
int m0_addb2_sit_next (struct m0_addb2_sit *it, struct m0_addb2_record **out)
 
struct m0_addb2_sourcem0_addb2_sit_source (struct m0_addb2_sit *it)
 
M0_INTERNAL int m0_addb2_storage_header (struct m0_stob *stob, struct m0_addb2_frame_header *h)