Motr  M0
zerovec.c File Reference
#include "ut/ut.h"
#include "lib/vec.h"
#include "lib/memory.h"
#include "lib/arith.h"
#include "lib/errno.h"
Include dependency graph for zerovec.c:

Go to the source code of this file.

Enumerations

enum  ZEROVEC_UT_VALUES { ZEROVEC_UT_SEG_SIZE = M0_0VEC_ALIGN, ZEROVEC_UT_SEGS_NR = 10 }
 

Functions

static void zerovec_init (struct m0_0vec *zvec, const m0_bcount_t seg_size)
 
static void zerovec_init_bvec (void)
 
static void zerovec_init_bufs (void)
 
static void zerovec_init_cbuf (void)
 
void test_zerovec (void)
 

Variables

static m0_bindex_t indices [ZEROVEC_UT_SEGS_NR]
 
static m0_bcount_t counts [ZEROVEC_UT_SEGS_NR]
 

Enumeration Type Documentation

◆ ZEROVEC_UT_VALUES

Enumerator
ZEROVEC_UT_SEG_SIZE 
ZEROVEC_UT_SEGS_NR 

Definition at line 33 of file zerovec.c.

Function Documentation

◆ test_zerovec()

void test_zerovec ( void  )

Definition at line 215 of file zerovec.c.

Here is the call graph for this function:

◆ zerovec_init()

static void zerovec_init ( struct m0_0vec zvec,
const m0_bcount_t  seg_size 
)
static

Definition at line 40 of file zerovec.c.

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

◆ zerovec_init_bufs()

static void zerovec_init_bufs ( void  )
static

Definition at line 93 of file zerovec.c.

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

◆ zerovec_init_bvec()

static void zerovec_init_bvec ( void  )
static

Definition at line 52 of file zerovec.c.

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

◆ zerovec_init_cbuf()

static void zerovec_init_cbuf ( void  )
static

Definition at line 131 of file zerovec.c.

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

Variable Documentation

◆ counts

Definition at line 50 of file zerovec.c.

◆ indices

Definition at line 38 of file zerovec.c.