Motr  M0
pool.c File Reference
#include "lib/memory.h"
#include "lib/misc.h"
#include "ut/ut.h"
#include "be/op.h"
#include "be/pool.h"
Include dependency graph for pool.c:

Go to the source code of this file.

Data Structures

struct  be_ut_pool_item
 

Macros

#define BE_UT_POOL_MAGIC   0xdeadbeef
 
#define BE_UT_POOL_MAGIC1   UINT64_MAX
 
#define BE_UT_POOL_MAGIC2   UINT64_MAX
 
#define BE_UT_POOL_MAGIC3   UINT64_MAX
 

Enumerations

enum  { BE_UT_POOL_ITEM_NR = 100, BE_UT_POOL_Q_SIZE = 50 }
 

Functions

 M0_BE_POOL_DESCR_DEFINE (ut, "be_pool UT", static, struct be_ut_pool_item, bupi_pool_item, bupi_pool_magic, BE_UT_POOL_MAGIC)
 
 M0_BE_POOL_DEFINE (ut, static, struct be_ut_pool_item)
 
static void be_ut_pool_item_init (struct be_ut_pool_item *item)
 
static void be_ut_pool_items_check (struct be_ut_pool_item *items, int nr)
 
static void be_ut_pool_op_cb (struct m0_be_op *op, void *param)
 
static void be_ut_pool_usecase (int item_nr, int q_size)
 
void m0_be_ut_pool_usecase (void)
 

Macro Definition Documentation

◆ BE_UT_POOL_MAGIC

#define BE_UT_POOL_MAGIC   0xdeadbeef

Definition at line 35 of file pool.c.

◆ BE_UT_POOL_MAGIC1

#define BE_UT_POOL_MAGIC1   UINT64_MAX

Definition at line 36 of file pool.c.

◆ BE_UT_POOL_MAGIC2

#define BE_UT_POOL_MAGIC2   UINT64_MAX

Definition at line 37 of file pool.c.

◆ BE_UT_POOL_MAGIC3

#define BE_UT_POOL_MAGIC3   UINT64_MAX

Definition at line 38 of file pool.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
BE_UT_POOL_ITEM_NR 
BE_UT_POOL_Q_SIZE 

Definition at line 30 of file pool.c.

Function Documentation

◆ be_ut_pool_item_init()

static void be_ut_pool_item_init ( struct be_ut_pool_item item)
static

Definition at line 53 of file pool.c.

Here is the caller graph for this function:

◆ be_ut_pool_items_check()

static void be_ut_pool_items_check ( struct be_ut_pool_item items,
int  nr 
)
static

Definition at line 61 of file pool.c.

Here is the caller graph for this function:

◆ be_ut_pool_op_cb()

static void be_ut_pool_op_cb ( struct m0_be_op op,
void *  param 
)
static

Definition at line 73 of file pool.c.

Here is the caller graph for this function:

◆ be_ut_pool_usecase()

static void be_ut_pool_usecase ( int  item_nr,
int  q_size 
)
static

Definition at line 81 of file pool.c.

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

◆ M0_BE_POOL_DEFINE()

M0_BE_POOL_DEFINE ( ut  ,
static  ,
struct be_ut_pool_item   
)

◆ M0_BE_POOL_DESCR_DEFINE()

M0_BE_POOL_DESCR_DEFINE ( ut  ,
"be_pool UT ,
static  ,
struct be_ut_pool_item  ,
bupi_pool_item  ,
bupi_pool_magic  ,
BE_UT_POOL_MAGIC   
)

◆ m0_be_ut_pool_usecase()

void m0_be_ut_pool_usecase ( void  )

Definition at line 162 of file pool.c.

Here is the call graph for this function: