corosync 3.1.8
|
#include <stdint.h>
#include <errno.h>
#include <time.h>
#include <sys/time.h>
Go to the source code of this file.
Data Structures | |
struct | cs_name_t |
The cs_name_t struct. More... | |
struct | cs_version_t |
The cs_version_t struct. More... | |
Macros | |
#define | CS_FALSE 0 |
#define | CS_TRUE !CS_FALSE |
#define | CS_MAX_NAME_LENGTH 256 |
#define | CS_TIME_END ((cs_time_t)0x7FFFFFFFFFFFFFFFULL) |
#define | CS_MAX(x, y) (((x) > (y)) ? (x) : (y)) |
#define | CS_PRI_NODE_ID "%" PRIu32 |
#define | CS_PRI_NODE_ID_PADDED "%10" PRIu32 |
#define | CS_PRI_RING_ID_SEQ "%" PRIx64 |
#define | CS_PRI_RING_ID "%" PRIx32 ".%" PRIx64 |
#define | CS_TRACK_CURRENT 0x01 |
#define | CS_TRACK_CHANGES 0x02 |
#define | CS_TRACK_CHANGES_ONLY 0x04 |
#define | CS_IPC_TIMEOUT_MS -1 |
#define | CS_TIME_MS_IN_SEC 1000ULL |
#define | CS_TIME_US_IN_SEC 1000000ULL |
#define | CS_TIME_NS_IN_SEC 1000000000ULL |
#define | CS_TIME_US_IN_MSEC 1000ULL |
#define | CS_TIME_NS_IN_MSEC 1000000ULL |
#define | CS_TIME_NS_IN_USEC 1000ULL |
Typedefs | |
typedef int64_t | cs_time_t |
cs_time_t | |
Enumerations | |
enum | cs_dispatch_flags_t { CS_DISPATCH_ONE = 1 , CS_DISPATCH_ALL = 2 , CS_DISPATCH_BLOCKING = 3 , CS_DISPATCH_ONE_NONBLOCKING = 4 } |
The cs_dispatch_flags_t enum. More... | |
enum | cs_error_t { CS_OK = 1 , CS_ERR_LIBRARY = 2 , CS_ERR_VERSION = 3 , CS_ERR_INIT = 4 , CS_ERR_TIMEOUT = 5 , CS_ERR_TRY_AGAIN = 6 , CS_ERR_INVALID_PARAM = 7 , CS_ERR_NO_MEMORY = 8 , CS_ERR_BAD_HANDLE = 9 , CS_ERR_BUSY = 10 , CS_ERR_ACCESS = 11 , CS_ERR_NOT_EXIST = 12 , CS_ERR_NAME_TOO_LONG = 13 , CS_ERR_EXIST = 14 , CS_ERR_NO_SPACE = 15 , CS_ERR_INTERRUPT = 16 , CS_ERR_NAME_NOT_FOUND = 17 , CS_ERR_NO_RESOURCES = 18 , CS_ERR_NOT_SUPPORTED = 19 , CS_ERR_BAD_OPERATION = 20 , CS_ERR_FAILED_OPERATION = 21 , CS_ERR_MESSAGE_ERROR = 22 , CS_ERR_QUEUE_FULL = 23 , CS_ERR_QUEUE_NOT_AVAILABLE = 24 , CS_ERR_BAD_FLAGS = 25 , CS_ERR_TOO_BIG = 26 , CS_ERR_NO_SECTIONS = 27 , CS_ERR_CONTEXT_NOT_FOUND = 28 , CS_ERR_TOO_MANY_GROUPS = 30 , CS_ERR_SECURITY = 100 } |
The cs_error_t enum. More... | |
Functions | |
cs_error_t | qb_to_cs_error (int result) |
qb_to_cs_error | |
const char * | cs_strerror (cs_error_t err) |
cs_strerror | |
cs_error_t | hdb_error_to_cs (int res) |
hdb_error_to_cs | |
#define CS_FALSE 0 |
Definition at line 53 of file corotypes.h.
#define CS_IPC_TIMEOUT_MS -1 |
Definition at line 131 of file corotypes.h.
#define CS_MAX_NAME_LENGTH 256 |
Definition at line 55 of file corotypes.h.
Definition at line 59 of file corotypes.h.
Definition at line 60 of file corotypes.h.
Definition at line 62 of file corotypes.h.
Definition at line 61 of file corotypes.h.
Definition at line 56 of file corotypes.h.
#define CS_TIME_MS_IN_SEC 1000ULL |
Definition at line 133 of file corotypes.h.
#define CS_TIME_NS_IN_MSEC 1000000ULL |
Definition at line 137 of file corotypes.h.
#define CS_TIME_NS_IN_SEC 1000000000ULL |
Definition at line 135 of file corotypes.h.
#define CS_TIME_NS_IN_USEC 1000ULL |
Definition at line 138 of file corotypes.h.
#define CS_TIME_US_IN_MSEC 1000ULL |
Definition at line 136 of file corotypes.h.
#define CS_TIME_US_IN_SEC 1000000ULL |
Definition at line 134 of file corotypes.h.
#define CS_TRACK_CHANGES 0x02 |
Definition at line 92 of file corotypes.h.
#define CS_TRACK_CHANGES_ONLY 0x04 |
Definition at line 93 of file corotypes.h.
#define CS_TRACK_CURRENT 0x01 |
Definition at line 91 of file corotypes.h.
Definition at line 54 of file corotypes.h.
cs_time_t
Definition at line 51 of file corotypes.h.
The cs_dispatch_flags_t enum.
Enumerator | |
---|---|
CS_DISPATCH_ONE | |
CS_DISPATCH_ALL | |
CS_DISPATCH_BLOCKING | |
CS_DISPATCH_ONE_NONBLOCKING |
Definition at line 84 of file corotypes.h.
The cs_error_t enum.
Definition at line 98 of file corotypes.h.
const char * cs_strerror | ( | cs_error_t | err | ) |
cs_strerror
err |
cs_error_t hdb_error_to_cs | ( | int | res | ) |
hdb_error_to_cs
res |
cs_error_t qb_to_cs_error | ( | int | result | ) |
qb_to_cs_error
result |
Referenced by cmap_delete(), cmap_dispatch(), cmap_fd_get(), cmap_get(), cmap_initialize(), cmap_initialize_map(), cmap_iter_finalize(), cmap_iter_init(), cmap_iter_next(), cmap_set(), cmap_track_add(), cmap_track_delete(), corosync_cfg_dispatch(), corosync_cfg_fd_get(), corosync_cfg_get_node_addrs(), corosync_cfg_initialize(), corosync_cfg_kill_node(), corosync_cfg_local_get(), corosync_cfg_node_status_get(), corosync_cfg_reload_config(), corosync_cfg_reopen_log_files(), corosync_cfg_replyto_shutdown(), corosync_cfg_ring_status_get(), corosync_cfg_trackstart(), corosync_cfg_trackstop(), corosync_cfg_try_shutdown(), cpg_dispatch(), cpg_fd_get(), cpg_iteration_next(), cpg_mcast_joined(), cpg_model_initialize(), cpg_zcb_free(), icmap_init_r(), icmap_track_add(), icmap_track_delete(), logsys_reopen_log_files(), quorum_dispatch(), quorum_fd_get(), quorum_getquorate(), quorum_model_initialize(), quorum_trackstart(), quorum_trackstop(), stats_map_init(), stats_map_track_add(), totemknet_handle_get_stats(), votequorum_dispatch(), votequorum_fd_get(), votequorum_getinfo(), votequorum_initialize(), votequorum_qdevice_master_wins(), votequorum_qdevice_poll(), votequorum_qdevice_register(), votequorum_qdevice_unregister(), votequorum_qdevice_update(), votequorum_setexpected(), votequorum_setvotes(), votequorum_trackstart(), and votequorum_trackstop().