Motr  M0
group.c File Reference
#include "lib/chan.h"
#include "lib/semaphore.h"
#include "rm/rm.h"
#include "rm/rm_internal.h"
#include "rm/rm_fops.h"
#include "rm/ut/rmut.h"
#include "rm/ut/rings.h"
Include dependency graph for group.c:

Go to the source code of this file.

Functions

static void rmg_in_complete (struct m0_rm_incoming *in, int32_t rc)
 
static void rmg_in_conflict (struct m0_rm_incoming *in)
 
static void ring_get (enum rm_server srv_id, uint64_t group, enum m0_rm_incoming_flags in_flag, int which_ring)
 
static void standalone_borrow_verify (void)
 
static void standalone_borrow_run (void)
 
static void group_revoke_verify (void)
 
static void group_revoke_run (void)
 
static void group_borrow_verify (enum rm_server srv_id)
 
static void group_borrow_run (enum rm_server srv_id)
 
static void server1_tests (void)
 
static void server2_tests (void)
 
static void server3_tests (void)
 
static void rm_server_start (const int tid)
 
static void server_hier_config (void)
 
static void rm_group_utinit (void)
 
static void rm_group_utfini (void)
 
void rm_group_test (void)
 

Variables

static enum rm_server test_servers_nr
 
static struct m0_clink group_tests_clink [GROUP_TESTS_NR]
 
static uint64_t M0_RM_SNS_GROUP = 1
 
static struct m0_semaphore startup_sem
 
static const struct m0_rm_incoming_ops rmg_incoming_ops
 

Function Documentation

◆ group_borrow_run()

static void group_borrow_run ( enum rm_server  srv_id)
static

Definition at line 134 of file group.c.

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

◆ group_borrow_verify()

static void group_borrow_verify ( enum rm_server  srv_id)
static

Definition at line 121 of file group.c.

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

◆ group_revoke_run()

static void group_revoke_run ( void  )
static

Definition at line 114 of file group.c.

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

◆ group_revoke_verify()

static void group_revoke_verify ( void  )
static

Definition at line 98 of file group.c.

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

◆ ring_get()

static void ring_get ( enum rm_server  srv_id,
uint64_t  group,
enum m0_rm_incoming_flags  in_flag,
int  which_ring 
)
static

Definition at line 50 of file group.c.

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

◆ rm_group_test()

void rm_group_test ( void  )

Definition at line 271 of file group.c.

Here is the call graph for this function:

◆ rm_group_utfini()

static void rm_group_utfini ( void  )
static

Definition at line 238 of file group.c.

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

◆ rm_group_utinit()

static void rm_group_utinit ( void  )
static

Definition at line 218 of file group.c.

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

◆ rm_server_start()

static void rm_server_start ( const int  tid)
static

Definition at line 170 of file group.c.

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

◆ rmg_in_complete()

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

Definition at line 37 of file group.c.

◆ rmg_in_conflict()

static void rmg_in_conflict ( struct m0_rm_incoming in)
static

Definition at line 41 of file group.c.

◆ server1_tests()

static void server1_tests ( void  )
static

Definition at line 139 of file group.c.

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

◆ server2_tests()

static void server2_tests ( void  )
static

Definition at line 149 of file group.c.

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

◆ server3_tests()

static void server3_tests ( void  )
static

Definition at line 160 of file group.c.

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

◆ server_hier_config()

static void server_hier_config ( void  )
static

Definition at line 202 of file group.c.

Here is the caller graph for this function:

◆ standalone_borrow_run()

static void standalone_borrow_run ( void  )
static

Definition at line 93 of file group.c.

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

◆ standalone_borrow_verify()

static void standalone_borrow_verify ( void  )
static

Definition at line 82 of file group.c.

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

Variable Documentation

◆ group_tests_clink

struct m0_clink group_tests_clink[GROUP_TESTS_NR]
static

Definition at line 33 of file group.c.

◆ M0_RM_SNS_GROUP

uint64_t M0_RM_SNS_GROUP = 1
static

Definition at line 34 of file group.c.

◆ rmg_incoming_ops

const struct m0_rm_incoming_ops rmg_incoming_ops
static
Initial value:
= {
.rio_complete = rmg_in_complete,
.rio_conflict = rmg_in_conflict
}
static void rmg_in_conflict(struct m0_rm_incoming *in)
Definition: group.c:41
static void rmg_in_complete(struct m0_rm_incoming *in, int32_t rc)
Definition: group.c:37

Definition at line 45 of file group.c.

◆ startup_sem

struct m0_semaphore startup_sem
static

Definition at line 35 of file group.c.

◆ test_servers_nr

enum rm_server test_servers_nr
static

Definition at line 32 of file group.c.