Motr  M0
st_assert.c File Reference
#include <unistd.h>
#include <errno.h>
#include "motr/client.h"
#include "motr/st/st.h"
#include "motr/st/st_assert.h"
#include "motr/st/st_misc.h"
Include dependency graph for st_assert.c:

Go to the source code of this file.

Data Structures

struct  st_cleaning_bin
 

Enumerations

enum  { ST_MAX_OP_NUM = 4096, ST_MAX_ENTITY_NUM = 4096, ST_MAX_PTR_NUM = 4096 }
 

Functions

bool st_assertimpl (bool c, const char *str_c, const char *file, int lno, const char *func)
 
static struct st_cleaning_binget_bin (void)
 
void st_mark_op (struct m0_op *op)
 
void st_unmark_op (struct m0_op *op)
 
void st_mark_entity (struct m0_entity *entity)
 
void st_unmark_entity (struct m0_entity *entity)
 
void st_mark_ptr (void *ptr)
 
void st_unmark_ptr (void *ptr)
 
int st_cleaner_init ()
 
void st_cleaner_fini ()
 
bool st_is_cleaner_up ()
 
void st_cleaner_enable ()
 
void st_cleaner_disable ()
 
static void release_op (struct m0_op *op)
 
void st_cleaner_empty_bin ()
 

Variables

static bool st_cleaner_up_flags [ST_MAX_WORKER_NUM]
 
static struct st_cleaning_bin worker_bins [ST_MAX_WORKER_NUM]
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ST_MAX_OP_NUM 
ST_MAX_ENTITY_NUM 
ST_MAX_PTR_NUM 

Definition at line 86 of file st_assert.c.

Function Documentation

◆ get_bin()

static struct st_cleaning_bin* get_bin ( void  )
inlinestatic

Definition at line 120 of file st_assert.c.

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

◆ release_op()

static void release_op ( struct m0_op op)
static

Definition at line 359 of file st_assert.c.

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

◆ st_cleaner_disable()

void st_cleaner_disable ( void  )

Definition at line 348 of file st_assert.c.

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

◆ st_cleaner_empty_bin()

void st_cleaner_empty_bin ( void  )

Definition at line 418 of file st_assert.c.

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

◆ st_cleaner_enable()

void st_cleaner_enable ( void  )

Definition at line 337 of file st_assert.c.

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

◆ st_cleaner_fini()

void st_cleaner_fini ( void  )

Definition at line 307 of file st_assert.c.

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

◆ st_cleaner_init()

int st_cleaner_init ( void  )

Definition at line 259 of file st_assert.c.

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

◆ st_is_cleaner_up()

bool st_is_cleaner_up ( void  )

Definition at line 326 of file st_assert.c.

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

◆ st_mark_entity()

void st_mark_entity ( struct m0_entity entity)

Definition at line 177 of file st_assert.c.

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

◆ st_mark_op()

void st_mark_op ( struct m0_op op)

Definition at line 131 of file st_assert.c.

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

◆ st_mark_ptr()

void st_mark_ptr ( void *  ptr)

Definition at line 218 of file st_assert.c.

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

◆ st_unmark_entity()

void st_unmark_entity ( struct m0_entity entity)

Definition at line 198 of file st_assert.c.

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

◆ st_unmark_op()

void st_unmark_op ( struct m0_op op)

Definition at line 156 of file st_assert.c.

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

◆ st_unmark_ptr()

void st_unmark_ptr ( void *  ptr)

Definition at line 239 of file st_assert.c.

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

Variable Documentation

◆ st_cleaner_up_flags

bool st_cleaner_up_flags[ST_MAX_WORKER_NUM]
static

Definition at line 63 of file st_assert.c.

◆ worker_bins

struct st_cleaning_bin worker_bins[ST_MAX_WORKER_NUM]
static

Definition at line 84 of file st_assert.c.