Motr  M0
reqh_service_internal.h File Reference
Include dependency graph for reqh_service_internal.h:

Go to the source code of this file.

Macros

#define __MOTR_REQH_REQH_SERVICE_INTERNAL_H__
 
#define CTX_STATE(ctx)   (ctx)->sc_sm.sm_state
 

Enumerations

enum  {
  M0_RSC_OFFLINE, M0_RSC_ONLINE, M0_RSC_CONNECTING, M0_RSC_DISCONNECTING,
  M0_RSC_CANCELLED
}
 
enum  {
  M0_RSC_RLINK_INITED, M0_RSC_RLINK_CONNECT, M0_RSC_RLINK_DISCONNECT, M0_RSC_RLINK_CANCEL,
  M0_RSC_RLINK_ABORT
}
 

Functions

static void reqh_service_ctx_sm_lock (struct m0_reqh_service_ctx *ctx)
 
static void reqh_service_ctx_sm_unlock (struct m0_reqh_service_ctx *ctx)
 
static bool reqh_service_ctx_sm_is_locked (const struct m0_reqh_service_ctx *ctx)
 
static void reqh_service_ctx_state_move (struct m0_reqh_service_ctx *ctx, int state)
 
static void reqh_service_ctx_flag_set (struct m0_reqh_service_ctx *ctx, int flag)
 
static void reqh_service_ctx_flag_clear (struct m0_reqh_service_ctx *ctx, int flag)
 
static bool reqh_service_ctx_flag_is_set (const struct m0_reqh_service_ctx *ctx, int flag)
 

Macro Definition Documentation

◆ __MOTR_REQH_REQH_SERVICE_INTERNAL_H__

#define __MOTR_REQH_REQH_SERVICE_INTERNAL_H__

Definition at line 26 of file reqh_service_internal.h.

◆ CTX_STATE

#define CTX_STATE (   ctx)    (ctx)->sc_sm.sm_state

Definition at line 53 of file reqh_service_internal.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
M0_RSC_OFFLINE 
M0_RSC_ONLINE 
M0_RSC_CONNECTING 
M0_RSC_DISCONNECTING 
M0_RSC_CANCELLED 

Definition at line 30 of file reqh_service_internal.h.

◆ anonymous enum

anonymous enum
Enumerator
M0_RSC_RLINK_INITED 
M0_RSC_RLINK_CONNECT 
M0_RSC_RLINK_DISCONNECT 
M0_RSC_RLINK_CANCEL 
M0_RSC_RLINK_ABORT 

Definition at line 38 of file reqh_service_internal.h.

Function Documentation

◆ reqh_service_ctx_flag_clear()

static void reqh_service_ctx_flag_clear ( struct m0_reqh_service_ctx ctx,
int  flag 
)
inlinestatic

Definition at line 84 of file reqh_service_internal.h.

Here is the caller graph for this function:

◆ reqh_service_ctx_flag_is_set()

static bool reqh_service_ctx_flag_is_set ( const struct m0_reqh_service_ctx ctx,
int  flag 
)
inlinestatic

Definition at line 90 of file reqh_service_internal.h.

Here is the caller graph for this function:

◆ reqh_service_ctx_flag_set()

static void reqh_service_ctx_flag_set ( struct m0_reqh_service_ctx ctx,
int  flag 
)
inlinestatic

Definition at line 78 of file reqh_service_internal.h.

Here is the caller graph for this function:

◆ reqh_service_ctx_sm_is_locked()

static bool reqh_service_ctx_sm_is_locked ( const struct m0_reqh_service_ctx ctx)
inlinestatic

Definition at line 66 of file reqh_service_internal.h.

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

◆ reqh_service_ctx_sm_lock()

static void reqh_service_ctx_sm_lock ( struct m0_reqh_service_ctx ctx)
inlinestatic

Definition at line 55 of file reqh_service_internal.h.

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

◆ reqh_service_ctx_sm_unlock()

static void reqh_service_ctx_sm_unlock ( struct m0_reqh_service_ctx ctx)
inlinestatic

Definition at line 60 of file reqh_service_internal.h.

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

◆ reqh_service_ctx_state_move()

static void reqh_service_ctx_state_move ( struct m0_reqh_service_ctx ctx,
int  state 
)
inlinestatic

Definition at line 72 of file reqh_service_internal.h.

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