Motr  M0
lcredits.c File Reference
#include "lib/types.h"
#include "lib/chan.h"
#include "lib/misc.h"
#include "ut/ut.h"
#include "lib/ub.h"
#include "rm/rm.h"
#include "rm/rm_internal.h"
#include "rm/ut/rings.h"
Include dependency graph for lcredits.c:

Go to the source code of this file.

Functions

bool res_tlist_contains (const struct m0_tl *list, const struct m0_rm_resource *res)
 
static void lcredits_in_complete (struct m0_rm_incoming *in, int32_t rc)
 
static void lcredits_in_conflict (struct m0_rm_incoming *in)
 
static void local_credits_init (void)
 
static void local_credits_fini (void)
 
static void credits_pinned_number_test (enum m0_rm_incoming_flags flags)
 
static void cached_credits_test (enum m0_rm_incoming_flags flags)
 
static void held_credits_test (enum m0_rm_incoming_flags flags)
 
static void held_non_conflicting_test (enum m0_rm_incoming_flags flags)
 
static void failures_test (void)
 
static void reserved_credit_get_test (enum m0_rm_incoming_flags flags, enum m0_rm_owner_owned_state type)
 
void barrier_on_barrier_test (void)
 
void local_credits_test (void)
 

Variables

static struct m0_chan complete_chan
 
static struct m0_chan conflict_chan
 
static struct m0_mutex conflict_mutex
 
const struct m0_rm_incoming_ops lcredits_incoming_ops
 

Function Documentation

◆ barrier_on_barrier_test()

void barrier_on_barrier_test ( void  )

Definition at line 368 of file lcredits.c.

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

◆ cached_credits_test()

static void cached_credits_test ( enum m0_rm_incoming_flags  flags)
static

Definition at line 121 of file lcredits.c.

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

◆ credits_pinned_number_test()

static void credits_pinned_number_test ( enum m0_rm_incoming_flags  flags)
static

Definition at line 76 of file lcredits.c.

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

◆ failures_test()

static void failures_test ( void  )
static

Definition at line 254 of file lcredits.c.

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

◆ held_credits_test()

static void held_credits_test ( enum m0_rm_incoming_flags  flags)
static

Definition at line 157 of file lcredits.c.

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

◆ held_non_conflicting_test()

static void held_non_conflicting_test ( enum m0_rm_incoming_flags  flags)
static

Definition at line 218 of file lcredits.c.

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

◆ lcredits_in_complete()

static void lcredits_in_complete ( struct m0_rm_incoming in,
int32_t  rc 
)
static

Definition at line 39 of file lcredits.c.

Here is the call graph for this function:

◆ lcredits_in_conflict()

static void lcredits_in_conflict ( struct m0_rm_incoming in)
static

Definition at line 45 of file lcredits.c.

Here is the call graph for this function:

◆ local_credits_fini()

static void local_credits_fini ( void  )
static

Definition at line 68 of file lcredits.c.

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

◆ local_credits_init()

static void local_credits_init ( void  )
static

Definition at line 56 of file lcredits.c.

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

◆ local_credits_test()

void local_credits_test ( void  )

Definition at line 438 of file lcredits.c.

Here is the call graph for this function:

◆ res_tlist_contains()

bool res_tlist_contains ( const struct m0_tl list,
const struct m0_rm_resource res 
)
Here is the caller graph for this function:

◆ reserved_credit_get_test()

static void reserved_credit_get_test ( enum m0_rm_incoming_flags  flags,
enum m0_rm_owner_owned_state  type 
)
static

Definition at line 283 of file lcredits.c.

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

Variable Documentation

◆ complete_chan

struct m0_chan complete_chan
static

Definition at line 32 of file lcredits.c.

◆ conflict_chan

struct m0_chan conflict_chan
static

Definition at line 33 of file lcredits.c.

◆ conflict_mutex

struct m0_mutex conflict_mutex
static

Definition at line 34 of file lcredits.c.

◆ lcredits_incoming_ops

const struct m0_rm_incoming_ops lcredits_incoming_ops
Initial value:
= {
.rio_complete = lcredits_in_complete,
.rio_conflict = lcredits_in_conflict
}
static void lcredits_in_complete(struct m0_rm_incoming *in, int32_t rc)
Definition: lcredits.c:39
static void lcredits_in_conflict(struct m0_rm_incoming *in)
Definition: lcredits.c:45

Definition at line 51 of file lcredits.c.