Motr  M0
session_fops.h File Reference
#include "fop/fop.h"
#include "rpc/rpc_opcodes.h"
#include "lib/types.h"
#include "lib/protocol.h"
#include "lib/protocol_xc.h"
#include "xcode/xcode_attr.h"
Include dependency graph for session_fops.h:

Go to the source code of this file.

Data Structures

struct  m0_rpc_fop_conn_establish_ctx
 
struct  m0_rpc_fop_conn_establish
 
struct  m0_rpc_fop_conn_establish_rep
 
struct  m0_rpc_fop_conn_terminate
 
struct  m0_rpc_fop_conn_terminate_rep
 
struct  m0_rpc_fop_session_establish
 
struct  m0_rpc_fop_session_establish_rep
 
struct  m0_rpc_fop_session_terminate
 
struct  m0_rpc_fop_session_terminate_rep
 

Macros

#define __MOTR_RPC_SESSION_FOPS_H__
 

Enumerations

enum  m0_rpc_conn_sess_terminate_phases { M0_RPC_CONN_SESS_TERMINATE_INIT = M0_FOM_PHASE_INIT, M0_RPC_CONN_SESS_TERMINATE_DONE = M0_FOM_PHASE_FINISH, M0_RPC_CONN_SESS_TERMINATE_WAIT }
 

Functions

M0_INTERNAL int m0_rpc_session_fop_init (void)
 
M0_INTERNAL void m0_rpc_session_fop_fini (void)
 
struct m0_rpc_fop_conn_establish M0_XCA_DOMAIN (rpc)
 

Variables

const struct m0_fop_type_ops m0_rpc_fop_conn_establish_ops
 
const struct m0_fop_type_ops m0_rpc_fop_conn_terminate_ops
 
const struct m0_fop_type_ops m0_rpc_fop_session_establish_ops
 
const struct m0_fop_type_ops m0_rpc_fop_session_terminate_ops
 
struct m0_fop_type m0_rpc_fop_conn_establish_fopt
 
struct m0_fop_type m0_rpc_fop_conn_establish_rep_fopt
 
struct m0_fop_type m0_rpc_fop_conn_terminate_fopt
 
struct m0_fop_type m0_rpc_fop_conn_terminate_rep_fopt
 
struct m0_fop_type m0_rpc_fop_session_establish_fopt
 
struct m0_fop_type m0_rpc_fop_session_establish_rep_fopt
 
struct m0_fop_type m0_rpc_fop_session_terminate_fopt
 
struct m0_fop_type m0_rpc_fop_session_terminate_rep_fopt
 
struct m0_protocol_id rce_protocol
 
int32_t rcer_rc
 
uint64_t rcer_sender_id
 
uint64_t ct_sender_id
 
int32_t ctr_rc
 
uint64_t ctr_sender_id
 
uint64_t rse_sender_id
 
int32_t rser_rc
 
uint64_t rser_session_id
 
uint64_t rser_sender_id
 
uint64_t rst_sender_id
 
uint64_t rst_session_id
 
int32_t rstr_rc
 
uint64_t rstr_session_id
 
uint64_t rstr_sender_id
 

Macro Definition Documentation

◆ __MOTR_RPC_SESSION_FOPS_H__

#define __MOTR_RPC_SESSION_FOPS_H__

Definition at line 26 of file session_fops.h.

Variable Documentation

◆ ct_sender_id

uint64_t ct_sender_id

sender_id of rpc-connection being terminated.

Definition at line 70 of file session_fops.h.

◆ ctr_rc

int32_t ctr_rc

Contains 0 if CONN_TERMINATE operation is successful, error code otherwise.

Definition at line 71 of file session_fops.h.

◆ ctr_sender_id

uint64_t ctr_sender_id

sender_id of rpc-connection being terminated.

Definition at line 75 of file session_fops.h.

◆ rce_protocol

struct m0_protocol_id rce_protocol

Protocol version string checked during rpc connection establinshing procedure

Definition at line 71 of file session_fops.h.

◆ rcer_rc

int32_t rcer_rc

Contains 0 if CONN_ESTABLISH operation is successful, error code otherwise.

Definition at line 71 of file session_fops.h.

◆ rcer_sender_id

uint64_t rcer_sender_id

sender_id assigned by receiver to the established rpc-connection. Has value SENDER_ID_INVALID if CONN_ESTABLISH operation fails.

Definition at line 76 of file session_fops.h.

◆ rse_sender_id

uint64_t rse_sender_id

sender_id of rpc-connection in which a new session is to be created.

Definition at line 70 of file session_fops.h.

◆ rser_rc

int32_t rser_rc

Contains 0 if SESSION_ESTABLISH operation is successful, error code otherwise.

Definition at line 71 of file session_fops.h.

◆ rser_sender_id

uint64_t rser_sender_id

sender_id copied from m0_rpc_fop_session_establish.

Definition at line 80 of file session_fops.h.

◆ rser_session_id

uint64_t rser_session_id

session_id assigned by receiver to the newly created session. Has value SESSION_ID_INVALID if SESSION_ESTABLISH operation fails.

Definition at line 76 of file session_fops.h.

◆ rst_sender_id

uint64_t rst_sender_id

sender_id of rpc-connection to which the session being terminated belongs.

Definition at line 71 of file session_fops.h.

◆ rst_session_id

uint64_t rst_session_id

session_id of session being terminated.

Definition at line 75 of file session_fops.h.

◆ rstr_rc

int32_t rstr_rc

Contains 0 if SESSION_TERMINATE operation is successful, error code otherwise.

Definition at line 71 of file session_fops.h.

◆ rstr_sender_id

uint64_t rstr_sender_id

sender_id of rpc-connection to which the session being terminated belongs.

Definition at line 80 of file session_fops.h.

◆ rstr_session_id

uint64_t rstr_session_id

session_id of the session being terminated.

Definition at line 75 of file session_fops.h.