Motr  M0
m0_motr Struct Reference

#include <setup.h>

Collaboration diagram for m0_motr:
Collaboration graph

Data Fields

struct m0_pools_common cc_pools_common
 
struct m0_rwlock cc_rwlock
 
struct m0_reqh_context cc_reqh_ctx
 
struct m0_net_xprt ** cc_xprts
 
size_t cc_xprts_nr
 
struct m0_tl cc_ndoms
 
FILE * cc_outfile
 
struct m0_tl cc_buffer_pools
 
size_t cc_recv_queue_min_length
 
size_t cc_max_rpc_msg_size
 
struct cs_endpoint_and_xprt cc_stats_svc_epx
 
struct m0_tl cc_ios_eps
 
struct m0_tl cc_mds_eps
 
uint32_t cc_pool_width
 
struct m0_motr_ha cc_motr_ha
 
bool cc_ha_is_started
 
char * cc_ha_addr
 
bool cc_daemon
 
bool cc_mkfs
 
bool cc_force
 
bool cc_no_storage
 
bool cc_no_conf
 
bool cc_no_all2all_connections
 
bool cc_enable_finj
 
struct cs_args cc_args
 
m0_bcount_t cc_sns_buf_nr
 
struct m0_module cc_module
 
int cc_setup_env_argc
 
char ** cc_setup_env_argv
 
uint64_t cc_magic
 
struct m0_conf_rootcc_conf_root
 
bool cc_skip_pools_and_ha_update
 
bool cc_ha_was_started
 

Detailed Description

Defines "Motr context" structure, which contains information on network transports, network domains and a request handler.

Definition at line 354 of file setup.h.

Field Documentation

◆ cc_args

struct cs_args cc_args

Command line arguments.

Definition at line 437 of file setup.h.

◆ cc_buffer_pools

struct m0_tl cc_buffer_pools

List of buffer pools in motr context.

See also
cs_buffer_pool::cs_bp_linkage

Definition at line 389 of file setup.h.

◆ cc_conf_root

struct m0_conf_root* cc_conf_root

Is used only during m0_cs_start().

Definition at line 460 of file setup.h.

◆ cc_daemon

bool cc_daemon

Run as a daemon?

Definition at line 416 of file setup.h.

◆ cc_enable_finj

bool cc_enable_finj

Enables fault injection during m0d bootup.

Definition at line 434 of file setup.h.

◆ cc_force

bool cc_force

Force to override found filesystem during mkfs.

Definition at line 422 of file setup.h.

◆ cc_ha_addr

char* cc_ha_addr

HA endpoint address

Definition at line 413 of file setup.h.

◆ cc_ha_is_started

bool cc_ha_is_started

Definition at line 412 of file setup.h.

◆ cc_ha_was_started

bool cc_ha_was_started

XXX A kludge for finalisation purposes.

Definition at line 469 of file setup.h.

◆ cc_ios_eps

struct m0_tl cc_ios_eps

List of ioservice end points.

Definition at line 404 of file setup.h.

◆ cc_magic

uint64_t cc_magic

Magic for m0_bob_type

Definition at line 457 of file setup.h.

◆ cc_max_rpc_msg_size

size_t cc_max_rpc_msg_size

Definition at line 398 of file setup.h.

◆ cc_mds_eps

struct m0_tl cc_mds_eps

List of mdservice end points.

Definition at line 407 of file setup.h.

◆ cc_mkfs

bool cc_mkfs

Run from mkfs?

Definition at line 419 of file setup.h.

◆ cc_module

struct m0_module cc_module

Used for step-by-step initialisation and finalisation in m0_cs_init(), m0_cs_setup_env(), m0_cs_start(), m0_cs_fini().

Definition at line 446 of file setup.h.

◆ cc_motr_ha

struct m0_motr_ha cc_motr_ha

Definition at line 411 of file setup.h.

◆ cc_ndoms

struct m0_tl cc_ndoms

List of network domain per motr context.

See also
m0_net_domain::nd_app_linkage

Definition at line 374 of file setup.h.

◆ cc_no_all2all_connections

bool cc_no_all2all_connections

Skip all-to-all connection init. Useful in dummy HA

Definition at line 431 of file setup.h.

◆ cc_no_conf

bool cc_no_conf

Skip Conf initialization when unneeded (like in m0rpcping).

Definition at line 428 of file setup.h.

◆ cc_no_storage

bool cc_no_storage

Skip BE initialization when unneeded (like in m0rpcping).

Definition at line 425 of file setup.h.

◆ cc_outfile

FILE* cc_outfile

File to which the output is written. This is set to stdout by default if no output file is specified. Default is set to stdout.

See also
m0_cs_init()

Definition at line 383 of file setup.h.

◆ cc_pool_width

uint32_t cc_pool_width

Definition at line 409 of file setup.h.

◆ cc_pools_common

struct m0_pools_common cc_pools_common

Resources shared between multiple pools.

Definition at line 356 of file setup.h.

◆ cc_recv_queue_min_length

size_t cc_recv_queue_min_length

Minimum number of buffers in TM receive queue.

See also
m0_net_transfer_mc:ntm_recv_queue_length Default is set to M0_NET_TM_RECV_QUEUE_DEF_LEN.

Definition at line 396 of file setup.h.

◆ cc_reqh_ctx

struct m0_reqh_context cc_reqh_ctx

Definition at line 361 of file setup.h.

◆ cc_rwlock

struct m0_rwlock cc_rwlock

Protects access to m0_motr members.

Definition at line 359 of file setup.h.

◆ cc_setup_env_argc

int cc_setup_env_argc

argc/argv, passed to m0_cs_setup_env(). Not the same as ca_argc/ca_argv in cc_args.

Definition at line 452 of file setup.h.

◆ cc_setup_env_argv

char** cc_setup_env_argv
See also
cc_setup_env_argc

Definition at line 454 of file setup.h.

◆ cc_skip_pools_and_ha_update

bool cc_skip_pools_and_ha_update

XXX Some strange mode. TODO eliminate it if (and when) possible.

Definition at line 466 of file setup.h.

◆ cc_sns_buf_nr

m0_bcount_t cc_sns_buf_nr

Number of buffers in incoming/outgoing copy machine pools.

Definition at line 440 of file setup.h.

◆ cc_stats_svc_epx

struct cs_endpoint_and_xprt cc_stats_svc_epx

"stats" service endpoint.

Definition at line 401 of file setup.h.

◆ cc_xprts

struct m0_net_xprt** cc_xprts

Array of network transports supported in a motr context.

Definition at line 364 of file setup.h.

◆ cc_xprts_nr

size_t cc_xprts_nr

Size of cc_xprts array.

Definition at line 367 of file setup.h.


The documentation for this struct was generated from the following file: