ipc_cpg.h
Go to the documentation of this file.
/*
* Copyright (c) 2006-2015 Red Hat, Inc.
*
* All rights reserved.
*
* Author: Christine Caulfield (ccaulfie@redhat.com)
* Author: Jan Friesse (jfriesse@redhat.com)
*
* This software licensed under BSD license, the text of which follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* - Neither the name of the MontaVista Software, Inc. nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef IPC_CPG_H_DEFINED
#define IPC_CPG_H_DEFINED
#include <netinet/in.h>
#include <qb/qbipc_common.h>
#include <corosync/corotypes.h>
#include <corosync/mar_gen.h>
#define CPG_ZC_PATH_LEN 128
enum req_cpg_types {
MESSAGE_REQ_CPG_JOIN = 0,
MESSAGE_REQ_CPG_LEAVE = 1,
MESSAGE_REQ_CPG_MCAST = 2,
MESSAGE_REQ_CPG_MEMBERSHIP = 3,
MESSAGE_REQ_CPG_LOCAL_GET = 4,
MESSAGE_REQ_CPG_ITERATIONINITIALIZE = 5,
MESSAGE_REQ_CPG_ITERATIONNEXT = 6,
MESSAGE_REQ_CPG_ITERATIONFINALIZE = 7,
MESSAGE_REQ_CPG_FINALIZE = 8,
MESSAGE_REQ_CPG_ZC_ALLOC = 9,
MESSAGE_REQ_CPG_ZC_FREE = 10,
MESSAGE_REQ_CPG_ZC_EXECUTE = 11,
MESSAGE_REQ_CPG_PARTIAL_MCAST = 12,
};
enum res_cpg_types {
MESSAGE_RES_CPG_JOIN = 0,
MESSAGE_RES_CPG_LEAVE = 1,
MESSAGE_RES_CPG_MCAST = 2,
MESSAGE_RES_CPG_MEMBERSHIP = 3,
MESSAGE_RES_CPG_CONFCHG_CALLBACK = 4,
MESSAGE_RES_CPG_DELIVER_CALLBACK = 5,
MESSAGE_RES_CPG_FLOW_CONTROL_STATE_SET = 6,
MESSAGE_RES_CPG_LOCAL_GET = 7,
MESSAGE_RES_CPG_FLOWCONTROL_CALLBACK = 8,
MESSAGE_RES_CPG_ITERATIONINITIALIZE = 9,
MESSAGE_RES_CPG_ITERATIONNEXT = 10,
MESSAGE_RES_CPG_ITERATIONFINALIZE = 11,
MESSAGE_RES_CPG_FINALIZE = 12,
MESSAGE_RES_CPG_TOTEM_CONFCHG_CALLBACK = 13,
MESSAGE_RES_CPG_ZC_ALLOC = 14,
MESSAGE_RES_CPG_ZC_FREE = 15,
MESSAGE_RES_CPG_ZC_EXECUTE = 16,
MESSAGE_RES_CPG_PARTIAL_DELIVER_CALLBACK = 17,
MESSAGE_RES_CPG_PARTIAL_SEND = 18,
};
enum lib_cpg_confchg_reason {
CONFCHG_CPG_REASON_JOIN = 1,
CONFCHG_CPG_REASON_LEAVE = 2,
CONFCHG_CPG_REASON_NODEDOWN = 3,
CONFCHG_CPG_REASON_NODEUP = 4,
CONFCHG_CPG_REASON_PROCDOWN = 5
};
enum lib_cpg_partial_types {
LIBCPG_PARTIAL_FIRST = 1,
LIBCPG_PARTIAL_CONTINUED = 2,
LIBCPG_PARTIAL_LAST = 3,
};
typedef struct {
uint32_t length __attribute__((aligned(8)));
char value[CPG_MAX_NAME_LENGTH] __attribute__((aligned(8)));
} mar_cpg_name_t;
static inline void swab_mar_cpg_name_t (mar_cpg_name_t *to_swab)
{
swab_mar_uint32_t (&to_swab->length);
}
static inline void marshall_from_mar_cpg_name_t (
struct cpg_name *dest,
const mar_cpg_name_t *src)
{
dest->length = src->length;
memcpy (&dest->value, &src->value, CPG_MAX_NAME_LENGTH);
}
static inline void marshall_to_mar_cpg_name_t (
mar_cpg_name_t *dest,
const struct cpg_name *src)
{
dest->length = src->length;
memcpy (&dest->value, &src->value, CPG_MAX_NAME_LENGTH);
}
typedef struct {
mar_uint32_t nodeid __attribute__((aligned(8)));
mar_uint32_t pid __attribute__((aligned(8)));
mar_uint32_t reason __attribute__((aligned(8)));
} mar_cpg_address_t;
static inline void marshall_from_mar_cpg_address_t (
struct cpg_address *dest,
const mar_cpg_address_t *src)
{
dest->nodeid = src->nodeid;
dest->pid = src->pid;
dest->reason = src->reason;
}
static inline void marshall_to_mar_cpg_address_t (
mar_cpg_address_t *dest,
const struct cpg_address *src)
{
dest->nodeid = src->nodeid;
dest->pid = src->pid;
dest->reason = src->reason;
}
static inline int mar_name_compare (
const mar_cpg_name_t *g1,
const mar_cpg_name_t *g2)
{
return (g1->length == g2->length?
memcmp (g1->value, g2->value, g1->length):
g1->length - g2->length);
}
typedef struct {
mar_cpg_name_t group;
mar_uint32_t nodeid;
mar_uint32_t pid;
} mar_cpg_iteration_description_t;
static inline void marshall_from_mar_cpg_iteration_description_t(
struct cpg_iteration_description_t *dest,
const mar_cpg_iteration_description_t *src)
{
dest->nodeid = src->nodeid;
dest->pid = src->pid;
marshall_from_mar_cpg_name_t (&dest->group, &src->group);
};
typedef struct {
mar_uint32_t nodeid __attribute__((aligned(8)));
mar_uint64_t seq __attribute__((aligned(8)));
} mar_cpg_ring_id_t;
static inline void marshall_from_mar_cpg_ring_id_t (
struct cpg_ring_id *dest,
const mar_cpg_ring_id_t *src)
{
dest->nodeid = src->nodeid;
dest->seq = src->seq;
}
struct req_lib_cpg_join {
struct qb_ipc_request_header header __attribute__((aligned(8)));
mar_cpg_name_t group_name __attribute__((aligned(8)));
mar_uint32_t pid __attribute__((aligned(8)));
mar_uint32_t flags __attribute__((aligned(8)));
};
struct res_lib_cpg_join {
struct qb_ipc_response_header header __attribute__((aligned(8)));
};
struct req_lib_cpg_finalize {
struct qb_ipc_request_header header __attribute__((aligned(8)));
};
struct res_lib_cpg_finalize {
struct qb_ipc_response_header header __attribute__((aligned(8)));
};
struct req_lib_cpg_local_get {
struct qb_ipc_request_header header __attribute__((aligned(8)));
};
struct res_lib_cpg_local_get {
struct qb_ipc_response_header header __attribute__((aligned(8)));
mar_uint32_t local_nodeid __attribute__((aligned(8)));
};
struct res_lib_cpg_partial_send {
struct qb_ipc_response_header header __attribute__((aligned(8)));
};
struct req_lib_cpg_mcast {
struct qb_ipc_response_header header __attribute__((aligned(8)));
mar_uint32_t guarantee __attribute__((aligned(8)));
mar_uint32_t msglen __attribute__((aligned(8)));
mar_uint8_t message[] __attribute__((aligned(8)));
};
struct req_lib_cpg_partial_mcast {
struct qb_ipc_response_header header __attribute__((aligned(8)));
mar_uint32_t guarantee __attribute__((aligned(8)));
mar_uint32_t msglen __attribute__((aligned(8)));
mar_uint32_t fraglen __attribute__((aligned(8)));
mar_uint32_t type __attribute__((aligned(8)));
mar_uint8_t message[] __attribute__((aligned(8)));
};
struct res_lib_cpg_mcast {
struct qb_ipc_response_header header __attribute__((aligned(8)));
};
struct res_lib_cpg_deliver_callback {
struct qb_ipc_response_header header __attribute__((aligned(8)));
mar_cpg_name_t group_name __attribute__((aligned(8)));
mar_uint32_t msglen __attribute__((aligned(8)));
mar_uint32_t nodeid __attribute__((aligned(8)));
mar_uint32_t pid __attribute__((aligned(8)));
mar_uint8_t message[] __attribute__((aligned(8)));
};
struct res_lib_cpg_partial_deliver_callback {
struct qb_ipc_response_header header __attribute__((aligned(8)));
mar_cpg_name_t group_name __attribute__((aligned(8)));
mar_uint32_t msglen __attribute__((aligned(8)));
mar_uint32_t fraglen __attribute__((aligned(8)));
mar_uint32_t nodeid __attribute__((aligned(8)));
mar_uint32_t pid __attribute__((aligned(8)));
mar_uint32_t type __attribute__((aligned(8)));
mar_uint8_t message[] __attribute__((aligned(8)));
};
struct res_lib_cpg_flowcontrol_callback {
struct qb_ipc_response_header header __attribute__((aligned(8)));
mar_uint32_t flow_control_state __attribute__((aligned(8)));
};
struct req_lib_cpg_membership_get {
struct qb_ipc_request_header header __attribute__((aligned(8)));
mar_cpg_name_t group_name __attribute__((aligned(8)));
};
struct res_lib_cpg_membership_get {
struct qb_ipc_response_header header __attribute__((aligned(8)));
mar_uint32_t member_count __attribute__((aligned(8)));
mar_cpg_address_t member_list[PROCESSOR_COUNT_MAX];
};
struct res_lib_cpg_confchg_callback {
struct qb_ipc_response_header header __attribute__((aligned(8)));
mar_cpg_name_t group_name __attribute__((aligned(8)));
mar_uint32_t member_list_entries __attribute__((aligned(8)));
mar_uint32_t joined_list_entries __attribute__((aligned(8)));
mar_uint32_t left_list_entries __attribute__((aligned(8)));
mar_cpg_address_t member_list[];
// struct cpg_address left_list[];
// struct cpg_address joined_list[];
};
struct res_lib_cpg_totem_confchg_callback {
struct qb_ipc_response_header header __attribute__((aligned(8)));
mar_cpg_ring_id_t ring_id __attribute__((aligned(8)));
mar_uint32_t member_list_entries __attribute__((aligned(8)));
mar_uint32_t member_list[];
};
struct req_lib_cpg_leave {
struct qb_ipc_request_header header __attribute__((aligned(8)));
mar_cpg_name_t group_name __attribute__((aligned(8)));
mar_uint32_t pid __attribute__((aligned(8)));
};
struct res_lib_cpg_leave {
struct qb_ipc_response_header header __attribute__((aligned(8)));
};
struct req_lib_cpg_iterationinitialize {
struct qb_ipc_request_header header __attribute__((aligned(8)));
mar_cpg_name_t group_name __attribute__((aligned(8)));
mar_uint32_t iteration_type __attribute__((aligned(8)));
};
struct res_lib_cpg_iterationinitialize {
struct qb_ipc_response_header header __attribute__((aligned(8)));
hdb_handle_t iteration_handle __attribute__((aligned(8)));
};
struct req_lib_cpg_iterationnext {
struct qb_ipc_request_header header __attribute__((aligned(8)));
hdb_handle_t iteration_handle __attribute__((aligned(8)));
};
struct res_lib_cpg_iterationnext {
struct qb_ipc_response_header header __attribute__((aligned(8)));
mar_cpg_iteration_description_t description __attribute__((aligned(8)));
};
struct req_lib_cpg_iterationfinalize {
struct qb_ipc_request_header header __attribute__((aligned(8)));
hdb_handle_t iteration_handle __attribute__((aligned(8)));
};
struct res_lib_cpg_iterationfinalize {
struct qb_ipc_response_header header __attribute__((aligned(8)));
};
typedef struct {
struct qb_ipc_request_header header __attribute__((aligned(8)));
size_t map_size __attribute__((aligned(8)));
char path_to_file[CPG_ZC_PATH_LEN] __attribute__((aligned(8)));
} mar_req_coroipcc_zc_alloc_t __attribute__((aligned(8)));
typedef struct {
struct qb_ipc_request_header header __attribute__((aligned(8)));
size_t map_size __attribute__((aligned(8)));
uint64_t server_address __attribute__((aligned(8)));
} mar_req_coroipcc_zc_free_t __attribute__((aligned(8)));
typedef struct {
struct qb_ipc_request_header header __attribute__((aligned(8)));
uint64_t server_address __attribute__((aligned(8)));
} mar_req_coroipcc_zc_execute_t __attribute__((aligned(8)));
struct coroipcs_zc_header {
int map_size;
uint64_t server_address;
};
#endif /* IPC_CPG_H_DEFINED */
seq
unsigned long long seq
Definition: coroapi.h:1
nodeid
unsigned int nodeid
Definition: coroapi.h:0
PROCESSOR_COUNT_MAX
#define PROCESSOR_COUNT_MAX
Definition: coroapi.h:96
corotypes.h
flags
uint32_t flags
Definition: exec/votequorum.c:4
value
uint32_t value
Definition: exec/votequorum.c:2
CPG_MAX_NAME_LENGTH
#define CPG_MAX_NAME_LENGTH
Definition: cpg.h:116
hdb_handle_t
qb_handle_t hdb_handle_t
Definition: hdb.h:52
lib_cpg_partial_types
lib_cpg_partial_types
The lib_cpg_partial_types enum.
Definition: ipc_cpg.h:103
LIBCPG_PARTIAL_FIRST
@ LIBCPG_PARTIAL_FIRST
Definition: ipc_cpg.h:104
LIBCPG_PARTIAL_LAST
@ LIBCPG_PARTIAL_LAST
Definition: ipc_cpg.h:106
LIBCPG_PARTIAL_CONTINUED
@ LIBCPG_PARTIAL_CONTINUED
Definition: ipc_cpg.h:105
CPG_ZC_PATH_LEN
#define CPG_ZC_PATH_LEN
Definition: ipc_cpg.h:43
req_cpg_types
req_cpg_types
The req_cpg_types enum.
Definition: ipc_cpg.h:48
MESSAGE_REQ_CPG_ZC_EXECUTE
@ MESSAGE_REQ_CPG_ZC_EXECUTE
Definition: ipc_cpg.h:60
MESSAGE_REQ_CPG_LOCAL_GET
@ MESSAGE_REQ_CPG_LOCAL_GET
Definition: ipc_cpg.h:53
MESSAGE_REQ_CPG_ITERATIONFINALIZE
@ MESSAGE_REQ_CPG_ITERATIONFINALIZE
Definition: ipc_cpg.h:56
MESSAGE_REQ_CPG_PARTIAL_MCAST
@ MESSAGE_REQ_CPG_PARTIAL_MCAST
Definition: ipc_cpg.h:61
MESSAGE_REQ_CPG_ZC_ALLOC
@ MESSAGE_REQ_CPG_ZC_ALLOC
Definition: ipc_cpg.h:58
MESSAGE_REQ_CPG_JOIN
@ MESSAGE_REQ_CPG_JOIN
Definition: ipc_cpg.h:49
MESSAGE_REQ_CPG_ZC_FREE
@ MESSAGE_REQ_CPG_ZC_FREE
Definition: ipc_cpg.h:59
MESSAGE_REQ_CPG_ITERATIONINITIALIZE
@ MESSAGE_REQ_CPG_ITERATIONINITIALIZE
Definition: ipc_cpg.h:54
MESSAGE_REQ_CPG_FINALIZE
@ MESSAGE_REQ_CPG_FINALIZE
Definition: ipc_cpg.h:57
MESSAGE_REQ_CPG_MEMBERSHIP
@ MESSAGE_REQ_CPG_MEMBERSHIP
Definition: ipc_cpg.h:52
MESSAGE_REQ_CPG_LEAVE
@ MESSAGE_REQ_CPG_LEAVE
Definition: ipc_cpg.h:50
MESSAGE_REQ_CPG_ITERATIONNEXT
@ MESSAGE_REQ_CPG_ITERATIONNEXT
Definition: ipc_cpg.h:55
MESSAGE_REQ_CPG_MCAST
@ MESSAGE_REQ_CPG_MCAST
Definition: ipc_cpg.h:51
res_cpg_types
res_cpg_types
The res_cpg_types enum.
Definition: ipc_cpg.h:67
MESSAGE_RES_CPG_ITERATIONFINALIZE
@ MESSAGE_RES_CPG_ITERATIONFINALIZE
Definition: ipc_cpg.h:79
MESSAGE_RES_CPG_MEMBERSHIP
@ MESSAGE_RES_CPG_MEMBERSHIP
Definition: ipc_cpg.h:71
MESSAGE_RES_CPG_ZC_ALLOC
@ MESSAGE_RES_CPG_ZC_ALLOC
Definition: ipc_cpg.h:82
MESSAGE_RES_CPG_LEAVE
@ MESSAGE_RES_CPG_LEAVE
Definition: ipc_cpg.h:69
MESSAGE_RES_CPG_MCAST
@ MESSAGE_RES_CPG_MCAST
Definition: ipc_cpg.h:70
MESSAGE_RES_CPG_PARTIAL_DELIVER_CALLBACK
@ MESSAGE_RES_CPG_PARTIAL_DELIVER_CALLBACK
Definition: ipc_cpg.h:85
MESSAGE_RES_CPG_ZC_EXECUTE
@ MESSAGE_RES_CPG_ZC_EXECUTE
Definition: ipc_cpg.h:84
MESSAGE_RES_CPG_FINALIZE
@ MESSAGE_RES_CPG_FINALIZE
Definition: ipc_cpg.h:80
MESSAGE_RES_CPG_DELIVER_CALLBACK
@ MESSAGE_RES_CPG_DELIVER_CALLBACK
Definition: ipc_cpg.h:73
MESSAGE_RES_CPG_TOTEM_CONFCHG_CALLBACK
@ MESSAGE_RES_CPG_TOTEM_CONFCHG_CALLBACK
Definition: ipc_cpg.h:81
MESSAGE_RES_CPG_ZC_FREE
@ MESSAGE_RES_CPG_ZC_FREE
Definition: ipc_cpg.h:83
MESSAGE_RES_CPG_ITERATIONNEXT
@ MESSAGE_RES_CPG_ITERATIONNEXT
Definition: ipc_cpg.h:78
MESSAGE_RES_CPG_CONFCHG_CALLBACK
@ MESSAGE_RES_CPG_CONFCHG_CALLBACK
Definition: ipc_cpg.h:72
MESSAGE_RES_CPG_FLOWCONTROL_CALLBACK
@ MESSAGE_RES_CPG_FLOWCONTROL_CALLBACK
Definition: ipc_cpg.h:76
MESSAGE_RES_CPG_PARTIAL_SEND
@ MESSAGE_RES_CPG_PARTIAL_SEND
Definition: ipc_cpg.h:86
MESSAGE_RES_CPG_ITERATIONINITIALIZE
@ MESSAGE_RES_CPG_ITERATIONINITIALIZE
Definition: ipc_cpg.h:77
MESSAGE_RES_CPG_LOCAL_GET
@ MESSAGE_RES_CPG_LOCAL_GET
Definition: ipc_cpg.h:75
MESSAGE_RES_CPG_JOIN
@ MESSAGE_RES_CPG_JOIN
Definition: ipc_cpg.h:68
MESSAGE_RES_CPG_FLOW_CONTROL_STATE_SET
@ MESSAGE_RES_CPG_FLOW_CONTROL_STATE_SET
Definition: ipc_cpg.h:74
lib_cpg_confchg_reason
lib_cpg_confchg_reason
The lib_cpg_confchg_reason enum.
Definition: ipc_cpg.h:92
CONFCHG_CPG_REASON_LEAVE
@ CONFCHG_CPG_REASON_LEAVE
Definition: ipc_cpg.h:94
CONFCHG_CPG_REASON_PROCDOWN
@ CONFCHG_CPG_REASON_PROCDOWN
Definition: ipc_cpg.h:97
CONFCHG_CPG_REASON_NODEUP
@ CONFCHG_CPG_REASON_NODEUP
Definition: ipc_cpg.h:96
CONFCHG_CPG_REASON_JOIN
@ CONFCHG_CPG_REASON_JOIN
Definition: ipc_cpg.h:93
CONFCHG_CPG_REASON_NODEDOWN
@ CONFCHG_CPG_REASON_NODEDOWN
Definition: ipc_cpg.h:95
mar_gen.h
mar_uint32_t
uint32_t mar_uint32_t
Definition: mar_gen.h:53
mar_uint8_t
uint8_t mar_uint8_t
Definition: mar_gen.h:51
mar_uint64_t
uint64_t mar_uint64_t
Definition: mar_gen.h:54
coroipcs_zc_header
coroipcs_zc_header struct
Definition: ipc_cpg.h:498
coroipcs_zc_header::server_address
uint64_t server_address
Definition: ipc_cpg.h:500
coroipcs_zc_header::map_size
int map_size
Definition: ipc_cpg.h:499
cpg_address
The cpg_address struct.
Definition: cpg.h:110
cpg_address::reason
uint32_t reason
Definition: cpg.h:113
cpg_address::pid
uint32_t pid
Definition: cpg.h:112
cpg_address::nodeid
uint32_t nodeid
Definition: cpg.h:111
cpg_iteration_description_t
The cpg_iteration_description_t struct.
Definition: cpg.h:130
cpg_iteration_description_t::nodeid
uint32_t nodeid
Definition: cpg.h:132
cpg_iteration_description_t::group
struct cpg_name group
Definition: cpg.h:131
cpg_iteration_description_t::pid
uint32_t pid
Definition: cpg.h:133
cpg_name
The cpg_name struct.
Definition: cpg.h:120
cpg_name::value
char value[CPG_MAX_NAME_LENGTH]
Definition: cpg.h:122
cpg_name::length
uint32_t length
Definition: cpg.h:121
cpg_ring_id
The cpg_ring_id struct.
Definition: cpg.h:139
cpg_ring_id::seq
uint64_t seq
Definition: cpg.h:141
cpg_ring_id::nodeid
uint32_t nodeid
Definition: cpg.h:140
mar_cpg_address_t
mar_cpg_address_t struct
Definition: ipc_cpg.h:155
mar_cpg_address_t::__attribute__
mar_uint32_t nodeid __attribute__((aligned(8)))
mar_cpg_address_t::__attribute__
mar_uint32_t pid __attribute__((aligned(8)))
mar_cpg_address_t::__attribute__
mar_uint32_t reason __attribute__((aligned(8)))
mar_cpg_iteration_description_t
mar_cpg_iteration_description_t struct
Definition: ipc_cpg.h:207
mar_cpg_iteration_description_t::nodeid
mar_uint32_t nodeid
Definition: ipc_cpg.h:209
mar_cpg_iteration_description_t::pid
mar_uint32_t pid
Definition: ipc_cpg.h:210
mar_cpg_iteration_description_t::group
mar_cpg_name_t group
Definition: ipc_cpg.h:208
mar_cpg_name_t
mar_cpg_name_t struct
Definition: ipc_cpg.h:112
mar_cpg_name_t::__attribute__
char value[CPG_MAX_NAME_LENGTH] __attribute__((aligned(8)))
mar_cpg_name_t::__attribute__
uint32_t length __attribute__((aligned(8)))
mar_cpg_ring_id_t
mar_cpg_ring_id_t struct
Definition: ipc_cpg.h:230
mar_cpg_ring_id_t::__attribute__
mar_uint64_t seq __attribute__((aligned(8)))
mar_cpg_ring_id_t::__attribute__
mar_uint32_t nodeid __attribute__((aligned(8)))
mar_req_coroipcc_zc_alloc_t
mar_req_coroipcc_zc_alloc_t struct
Definition: ipc_cpg.h:472
mar_req_coroipcc_zc_alloc_t::__attribute__
size_t map_size __attribute__((aligned(8)))
mar_req_coroipcc_zc_alloc_t::__attribute__
char path_to_file[CPG_ZC_PATH_LEN] __attribute__((aligned(8)))
mar_req_coroipcc_zc_execute_t
mar_req_coroipcc_zc_execute_t struct
Definition: ipc_cpg.h:490
mar_req_coroipcc_zc_execute_t::__attribute__
uint64_t server_address __attribute__((aligned(8)))
mar_req_coroipcc_zc_free_t
mar_req_coroipcc_zc_free_t struct
Definition: ipc_cpg.h:481
mar_req_coroipcc_zc_free_t::__attribute__
uint64_t server_address __attribute__((aligned(8)))
mar_req_coroipcc_zc_free_t::__attribute__
size_t map_size __attribute__((aligned(8)))
req_lib_cpg_finalize
The req_lib_cpg_finalize struct.
Definition: ipc_cpg.h:268
req_lib_cpg_finalize::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
req_lib_cpg_iterationfinalize
The req_lib_cpg_iterationfinalize struct.
Definition: ipc_cpg.h:457
req_lib_cpg_iterationfinalize::__attribute__
hdb_handle_t iteration_handle __attribute__((aligned(8)))
req_lib_cpg_iterationfinalize::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
req_lib_cpg_iterationinitialize
The req_lib_cpg_iterationinitialize struct.
Definition: ipc_cpg.h:424
req_lib_cpg_iterationinitialize::__attribute__
mar_cpg_name_t group_name __attribute__((aligned(8)))
req_lib_cpg_iterationinitialize::__attribute__
mar_uint32_t iteration_type __attribute__((aligned(8)))
req_lib_cpg_iterationinitialize::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
req_lib_cpg_iterationnext
The req_lib_cpg_iterationnext struct.
Definition: ipc_cpg.h:441
req_lib_cpg_iterationnext::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
req_lib_cpg_iterationnext::__attribute__
hdb_handle_t iteration_handle __attribute__((aligned(8)))
req_lib_cpg_join
The req_lib_cpg_join struct.
Definition: ipc_cpg.h:251
req_lib_cpg_join::__attribute__
mar_cpg_name_t group_name __attribute__((aligned(8)))
req_lib_cpg_join::__attribute__
mar_uint32_t pid __attribute__((aligned(8)))
req_lib_cpg_join::__attribute__
mar_uint32_t flags __attribute__((aligned(8)))
req_lib_cpg_join::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
req_lib_cpg_leave
The req_lib_cpg_leave struct.
Definition: ipc_cpg.h:408
req_lib_cpg_leave::__attribute__
mar_uint32_t pid __attribute__((aligned(8)))
req_lib_cpg_leave::__attribute__
mar_cpg_name_t group_name __attribute__((aligned(8)))
req_lib_cpg_leave::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
req_lib_cpg_local_get
The req_lib_cpg_local_get struct.
Definition: ipc_cpg.h:282
req_lib_cpg_local_get::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
req_lib_cpg_mcast
The req_lib_cpg_mcast struct.
Definition: ipc_cpg.h:304
req_lib_cpg_mcast::__attribute__
mar_uint32_t guarantee __attribute__((aligned(8)))
req_lib_cpg_mcast::__attribute__
mar_uint8_t message[] __attribute__((aligned(8)))
req_lib_cpg_mcast::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
req_lib_cpg_mcast::__attribute__
mar_uint32_t msglen __attribute__((aligned(8)))
req_lib_cpg_membership_get
The req_lib_cpg_membership_get struct.
Definition: ipc_cpg.h:367
req_lib_cpg_membership_get::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
req_lib_cpg_membership_get::__attribute__
mar_cpg_name_t group_name __attribute__((aligned(8)))
req_lib_cpg_partial_mcast
The req_lib_cpg_partial_mcast struct.
Definition: ipc_cpg.h:314
req_lib_cpg_partial_mcast::__attribute__
mar_uint32_t msglen __attribute__((aligned(8)))
req_lib_cpg_partial_mcast::__attribute__
mar_uint32_t guarantee __attribute__((aligned(8)))
req_lib_cpg_partial_mcast::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
req_lib_cpg_partial_mcast::__attribute__
mar_uint8_t message[] __attribute__((aligned(8)))
req_lib_cpg_partial_mcast::__attribute__
mar_uint32_t type __attribute__((aligned(8)))
req_lib_cpg_partial_mcast::__attribute__
mar_uint32_t fraglen __attribute__((aligned(8)))
res_lib_cpg_confchg_callback
The res_lib_cpg_confchg_callback struct.
Definition: ipc_cpg.h:384
res_lib_cpg_confchg_callback::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_confchg_callback::member_list
mar_cpg_address_t member_list[]
Definition: ipc_cpg.h:390
res_lib_cpg_confchg_callback::__attribute__
mar_cpg_name_t group_name __attribute__((aligned(8)))
res_lib_cpg_confchg_callback::__attribute__
mar_uint32_t member_list_entries __attribute__((aligned(8)))
res_lib_cpg_confchg_callback::__attribute__
mar_uint32_t left_list_entries __attribute__((aligned(8)))
res_lib_cpg_confchg_callback::__attribute__
mar_uint32_t joined_list_entries __attribute__((aligned(8)))
res_lib_cpg_deliver_callback
Message from another node.
Definition: ipc_cpg.h:333
res_lib_cpg_deliver_callback::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_deliver_callback::__attribute__
mar_uint32_t nodeid __attribute__((aligned(8)))
res_lib_cpg_deliver_callback::__attribute__
mar_uint8_t message[] __attribute__((aligned(8)))
res_lib_cpg_deliver_callback::__attribute__
mar_cpg_name_t group_name __attribute__((aligned(8)))
res_lib_cpg_deliver_callback::__attribute__
mar_uint32_t msglen __attribute__((aligned(8)))
res_lib_cpg_deliver_callback::__attribute__
mar_uint32_t pid __attribute__((aligned(8)))
res_lib_cpg_finalize
The res_lib_cpg_finalize struct.
Definition: ipc_cpg.h:275
res_lib_cpg_finalize::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_flowcontrol_callback
The res_lib_cpg_flowcontrol_callback struct.
Definition: ipc_cpg.h:359
res_lib_cpg_flowcontrol_callback::__attribute__
mar_uint32_t flow_control_state __attribute__((aligned(8)))
res_lib_cpg_flowcontrol_callback::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_iterationfinalize
The res_lib_cpg_iterationfinalize struct.
Definition: ipc_cpg.h:465
res_lib_cpg_iterationfinalize::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_iterationinitialize
The res_lib_cpg_iterationinitialize struct.
Definition: ipc_cpg.h:433
res_lib_cpg_iterationinitialize::__attribute__
hdb_handle_t iteration_handle __attribute__((aligned(8)))
res_lib_cpg_iterationinitialize::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_iterationnext
The res_lib_cpg_iterationnext struct.
Definition: ipc_cpg.h:449
res_lib_cpg_iterationnext::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_iterationnext::__attribute__
mar_cpg_iteration_description_t description __attribute__((aligned(8)))
res_lib_cpg_join
The res_lib_cpg_join struct.
Definition: ipc_cpg.h:261
res_lib_cpg_join::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_leave
The res_lib_cpg_leave struct.
Definition: ipc_cpg.h:417
res_lib_cpg_leave::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_local_get
The res_lib_cpg_local_get struct.
Definition: ipc_cpg.h:289
res_lib_cpg_local_get::__attribute__
mar_uint32_t local_nodeid __attribute__((aligned(8)))
res_lib_cpg_local_get::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_mcast
The res_lib_cpg_mcast struct.
Definition: ipc_cpg.h:326
res_lib_cpg_mcast::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_membership_get
The res_lib_cpg_membership_get struct.
Definition: ipc_cpg.h:375
res_lib_cpg_membership_get::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_membership_get::__attribute__
mar_uint32_t member_count __attribute__((aligned(8)))
res_lib_cpg_membership_get::member_list
mar_cpg_address_t member_list[PROCESSOR_COUNT_MAX]
Definition: ipc_cpg.h:378
res_lib_cpg_partial_deliver_callback
The res_lib_cpg_partial_deliver_callback struct.
Definition: ipc_cpg.h:345
res_lib_cpg_partial_deliver_callback::__attribute__
mar_uint8_t message[] __attribute__((aligned(8)))
res_lib_cpg_partial_deliver_callback::__attribute__
mar_uint32_t pid __attribute__((aligned(8)))
res_lib_cpg_partial_deliver_callback::__attribute__
mar_uint32_t nodeid __attribute__((aligned(8)))
res_lib_cpg_partial_deliver_callback::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_partial_deliver_callback::__attribute__
mar_uint32_t fraglen __attribute__((aligned(8)))
res_lib_cpg_partial_deliver_callback::__attribute__
mar_uint32_t type __attribute__((aligned(8)))
res_lib_cpg_partial_deliver_callback::__attribute__
mar_cpg_name_t group_name __attribute__((aligned(8)))
res_lib_cpg_partial_deliver_callback::__attribute__
mar_uint32_t msglen __attribute__((aligned(8)))
res_lib_cpg_partial_send
The res_lib_cpg_partial_send struct.
Definition: ipc_cpg.h:297
res_lib_cpg_partial_send::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cpg_totem_confchg_callback
The res_lib_cpg_totem_confchg_callback struct.
Definition: ipc_cpg.h:398
res_lib_cpg_totem_confchg_callback::member_list
mar_uint32_t member_list[]
Definition: ipc_cpg.h:402
res_lib_cpg_totem_confchg_callback::__attribute__
mar_cpg_ring_id_t ring_id __attribute__((aligned(8)))
res_lib_cpg_totem_confchg_callback::__attribute__
mar_uint32_t member_list_entries __attribute__((aligned(8)))
res_lib_cpg_totem_confchg_callback::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
__attribute__
typedef __attribute__
type
char type
Definition: totem.h:2
guarantee
int guarantee
Definition: totemsrp.c:6
ring_id
struct memb_ring_id ring_id
Definition: totemsrp.c:4
header
struct totem_message_header header
Definition: totemsrp.c:0