corosync
2.4.3
|
#include <corosync/corotypes.h>
Go to the source code of this file.
Data Structures | |
struct | quorum_callbacks_t |
The quorum_callbacks_t struct. More... | |
Macros | |
#define | QUORUM_FREE 0 |
#define | QUORUM_SET 1 |
Typedefs | |
typedef uint64_t | quorum_handle_t |
quorum_handle_t More... | |
typedef void(* | quorum_notification_fn_t) (quorum_handle_t handle, uint32_t quorate, uint64_t ring_seq, uint32_t view_list_entries, uint32_t *view_list) |
The quorum_notification_fn_t callback. More... | |
Functions | |
cs_error_t | quorum_initialize (quorum_handle_t *handle, quorum_callbacks_t *callbacks, uint32_t *quorum_type) |
Create a new quorum connection. More... | |
cs_error_t | quorum_finalize (quorum_handle_t handle) |
Close the quorum handle. More... | |
cs_error_t | quorum_fd_get (quorum_handle_t handle, int *fd) |
Get a file descriptor on which to poll. More... | |
cs_error_t | quorum_dispatch (quorum_handle_t handle, cs_dispatch_flags_t dispatch_types) |
Dispatch messages and configuration changes. More... | |
cs_error_t | quorum_getquorate (quorum_handle_t handle, int *quorate) |
Get quorum information. More... | |
cs_error_t | quorum_trackstart (quorum_handle_t handle, unsigned int flags) |
Track node and quorum changes. More... | |
cs_error_t | quorum_trackstop (quorum_handle_t handle) |
quorum_trackstop More... | |
cs_error_t | quorum_context_set (quorum_handle_t handle, const void *context) |
quorum_context_set More... | |
cs_error_t | quorum_context_get (quorum_handle_t handle, const void **context) |
quorum_context_get More... | |
#define QUORUM_FREE 0 |
Definition at line 66 of file include/corosync/quorum.h.
#define QUORUM_SET 1 |
Definition at line 67 of file include/corosync/quorum.h.
typedef uint64_t quorum_handle_t |
quorum_handle_t
Definition at line 46 of file include/corosync/quorum.h.
typedef void(* quorum_notification_fn_t) (quorum_handle_t handle, uint32_t quorate, uint64_t ring_seq, uint32_t view_list_entries, uint32_t *view_list) |
The quorum_notification_fn_t callback.
Definition at line 51 of file include/corosync/quorum.h.
cs_error_t quorum_context_get | ( | quorum_handle_t | handle, |
const void ** | context | ||
) |
quorum_context_get
handle | |
context |
Definition at line 232 of file lib/quorum.c.
References hdb_error_to_cs().
cs_error_t quorum_context_set | ( | quorum_handle_t | handle, |
const void * | context | ||
) |
quorum_context_set
handle | |
context |
Definition at line 251 of file lib/quorum.c.
References hdb_error_to_cs().
cs_error_t quorum_dispatch | ( | quorum_handle_t | handle, |
cs_dispatch_flags_t | dispatch_types | ||
) |
Dispatch messages and configuration changes.
handle | |
dispatch_types |
Definition at line 351 of file lib/quorum.c.
References quorum_inst::callbacks, CS_DISPATCH_ALL, CS_DISPATCH_BLOCKING, CS_DISPATCH_ONE, CS_DISPATCH_ONE_NONBLOCKING, CS_ERR_INVALID_PARAM, hdb_error_to_cs(), and IPC_DISPATCH_SIZE.
cs_error_t quorum_fd_get | ( | quorum_handle_t | handle, |
int * | fd | ||
) |
Get a file descriptor on which to poll.
handle | |
fd |
Definition at line 212 of file lib/quorum.c.
References hdb_error_to_cs().
cs_error_t quorum_finalize | ( | quorum_handle_t | handle | ) |
Close the quorum handle.
handle |
Definition at line 142 of file lib/quorum.c.
References hdb_error_to_cs().
cs_error_t quorum_getquorate | ( | quorum_handle_t | handle, |
int * | quorate | ||
) |
Get quorum information.
handle | |
quorate |
Definition at line 170 of file lib/quorum.c.
References hdb_error_to_cs().
cs_error_t quorum_initialize | ( | quorum_handle_t * | handle, |
quorum_callbacks_t * | callbacks, | ||
uint32_t * | quorum_type | ||
) |
Create a new quorum connection.
handle | |
callbacks | |
quorum_type |
Definition at line 69 of file lib/quorum.c.
cs_error_t quorum_trackstart | ( | quorum_handle_t | handle, |
unsigned int | flags | ||
) |
Track node and quorum changes.
handle | |
flags |
Definition at line 271 of file lib/quorum.c.
References hdb_error_to_cs().
cs_error_t quorum_trackstop | ( | quorum_handle_t | handle | ) |
quorum_trackstop
handle |
Definition at line 312 of file lib/quorum.c.
References hdb_error_to_cs().