corosync  2.4.4
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
exec/cmap.c File Reference
#include <config.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <errno.h>
#include <poll.h>
#include <assert.h>
#include <qb/qbloop.h>
#include <qb/qbipc_common.h>
#include <corosync/corotypes.h>
#include <corosync/corodefs.h>
#include <corosync/list.h>
#include <corosync/mar_gen.h>
#include <corosync/ipc_cmap.h>
#include <corosync/logsys.h>
#include <corosync/coroapi.h>
#include <corosync/icmap.h>
#include "service.h"
Include dependency graph for exec/cmap.c:

Go to the source code of this file.

Data Structures

struct  cmap_conn_info
 
struct  cmap_track_user_data
 
struct  req_exec_cmap_mcast_item
 
struct  req_exec_cmap_mcast
 

Macros

#define MAX_REQ_EXEC_CMAP_MCAST_ITEMS   32
 
#define ICMAP_VALUETYPE_NOT_EXIST   0
 

Typedefs

typedef uint64_t cmap_iter_handle_t
 
typedef uint64_t cmap_track_handle_t
 

Enumerations

enum  cmap_message_req_types { MESSAGE_REQ_EXEC_CMAP_MCAST = 0 }
 
enum  cmap_mcast_reason { CMAP_MCAST_REASON_SYNC = 0, CMAP_MCAST_REASON_NEW_CONFIG_VERSION = 1 }
 

Functions

 LOGSYS_DECLARE_SUBSYS ("CMAP")
 
struct corosync_service_enginecmap_get_service_engine_ver0 (void)
 

Variables

struct corosync_service_engine cmap_service_engine
 

Macro Definition Documentation

#define ICMAP_VALUETYPE_NOT_EXIST   0

Definition at line 62 of file exec/cmap.c.

#define MAX_REQ_EXEC_CMAP_MCAST_ITEMS   32

Definition at line 61 of file exec/cmap.c.

Typedef Documentation

typedef uint64_t cmap_iter_handle_t

Definition at line 69 of file exec/cmap.c.

typedef uint64_t cmap_track_handle_t

Definition at line 70 of file exec/cmap.c.

Enumeration Type Documentation

Enumerator
CMAP_MCAST_REASON_SYNC 
CMAP_MCAST_REASON_NEW_CONFIG_VERSION 

Definition at line 82 of file exec/cmap.c.

Enumerator
MESSAGE_REQ_EXEC_CMAP_MCAST 

Definition at line 78 of file exec/cmap.c.

Function Documentation

struct corosync_service_engine* cmap_get_service_engine_ver0 ( void  )

Definition at line 216 of file exec/cmap.c.

LOGSYS_DECLARE_SUBSYS ( "CMAP"  )

Variable Documentation

struct corosync_service_engine cmap_service_engine
Initial value:
= {
.name = "corosync configuration map access",
.id = CMAP_SERVICE,
.priority = 1,
.private_data_size = sizeof(struct cmap_conn_info),
.allow_inquorate = CS_LIB_ALLOW_INQUORATE,
.lib_init_fn = cmap_lib_init_fn,
.lib_exit_fn = cmap_lib_exit_fn,
.lib_engine = cmap_lib_engine,
.lib_engine_count = sizeof (cmap_lib_engine) / sizeof (struct corosync_lib_handler),
.exec_init_fn = cmap_exec_init_fn,
.exec_exit_fn = cmap_exec_exit_fn,
.exec_engine = cmap_exec_engine,
.exec_engine_count = sizeof (cmap_exec_engine) / sizeof (struct corosync_exec_handler),
.sync_init = cmap_sync_init,
.sync_process = cmap_sync_process,
.sync_activate = cmap_sync_activate,
.sync_abort = cmap_sync_abort
}
The corosync_lib_handler struct.
Definition: coroapi.h:468
The corosync_exec_handler struct.
Definition: coroapi.h:476

Definition at line 195 of file exec/cmap.c.