pacemaker
1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
|
#include <syslog.h>
Go to the source code of this file.
Data Structures | |
struct | crm_child_s |
struct | pcmk_env_s |
Macros | |
#define | SIZEOF(a) (sizeof(a) / sizeof(a[0])) |
#define | do_ais_log(level, fmt, args...) |
#define | ais_perror(fmt, args...) |
#define | ais_crit(fmt, args...) do_ais_log(LOG_CRIT, fmt , ##args) |
#define | ais_err(fmt, args...) do_ais_log(LOG_ERR, fmt , ##args) |
#define | ais_warn(fmt, args...) do_ais_log(LOG_WARNING, fmt , ##args) |
#define | ais_notice(fmt, args...) do_ais_log(LOG_NOTICE, fmt , ##args) |
#define | ais_info(fmt, args...) do_ais_log(LOG_INFO, fmt , ##args) |
#define | ais_debug(fmt, args...) do_ais_log(LOG_DEBUG, fmt , ##args) |
#define | ais_trace(fmt, args...) do_ais_log(LOG_DEBUG+1, fmt , ##args) |
#define | ais_malloc0(malloc_obj, length) |
#define | ais_free(obj) |
#define | AIS_ASSERT(expr) |
#define | AIS_CHECK(expr, failure_action) |
Typedefs | |
typedef struct crm_child_s | crm_child_t |
Functions | |
void | destroy_ais_node (gpointer data) |
void | delete_member (uint32_t id, const char *uname) |
int | update_member (unsigned int id, uint64_t born, uint64_t seq, int32_t votes, uint32_t procs, const char *uname, const char *state, const char *version) |
const char * | member_uname (uint32_t id) |
char * | append_member (char *data, crm_node_t *node) |
void | member_loop_fn (gpointer key, gpointer value, gpointer user_data) |
gboolean | stop_child (crm_child_t *child, int signal) |
gboolean | spawn_child (crm_child_t *child) |
void | swap_sender (AIS_Message *msg) |
char * | get_ais_data (const AIS_Message *msg) |
gboolean | route_ais_message (const AIS_Message *msg, gboolean local) |
gboolean | process_ais_message (const AIS_Message *msg) |
int | send_plugin_msg (enum crm_ais_msg_types type, const char *host, const char *data) |
int | send_client_msg (void *conn, enum crm_ais_msg_class class, enum crm_ais_msg_types type, const char *data) |
void | send_member_notification (void) |
void | log_ais_message (int level, const AIS_Message *msg) |
hdb_handle_t | config_find_init (struct corosync_api_v1 *config, char *name) |
hdb_handle_t | config_find_next (struct corosync_api_v1 *config, char *name, hdb_handle_t top_handle) |
void | config_find_done (struct corosync_api_v1 *config, hdb_handle_t local_handle) |
int | get_config_opt (struct corosync_api_v1 *config, hdb_handle_t object_service_handle, char *key, char **value, const char *fallback) |
int | ais_get_boolean (const char *s) |
long long | ais_get_int (const char *text, char **end_text) |
char * | ais_concat (const char *prefix, const char *suffix, char join) |
int | send_client_ipc (void *conn, const AIS_Message *ais_msg) |
int | pcmk_user_lookup (const char *name, uid_t *uid, gid_t *gid) |
Variables | |
GHashTable * | membership_list |
pthread_t | crm_wait_thread |
int | plugin_log_level |
char * | local_uname |
int | local_uname_len |
unsigned int | local_nodeid |
struct pcmk_env_s | pcmk_env |
#define AIS_ASSERT | ( | expr | ) |
#define AIS_CHECK | ( | expr, | |
failure_action | |||
) |
#define ais_crit | ( | fmt, | |
args... | |||
) | do_ais_log(LOG_CRIT, fmt , ##args) |
#define ais_debug | ( | fmt, | |
args... | |||
) | do_ais_log(LOG_DEBUG, fmt , ##args) |
#define ais_err | ( | fmt, | |
args... | |||
) | do_ais_log(LOG_ERR, fmt , ##args) |
#define ais_free | ( | obj | ) |
#define ais_info | ( | fmt, | |
args... | |||
) | do_ais_log(LOG_INFO, fmt , ##args) |
#define ais_malloc0 | ( | malloc_obj, | |
length | |||
) |
#define ais_notice | ( | fmt, | |
args... | |||
) | do_ais_log(LOG_NOTICE, fmt , ##args) |
#define ais_perror | ( | fmt, | |
args... | |||
) |
#define ais_trace | ( | fmt, | |
args... | |||
) | do_ais_log(LOG_DEBUG+1, fmt , ##args) |
#define ais_warn | ( | fmt, | |
args... | |||
) | do_ais_log(LOG_WARNING, fmt , ##args) |
#define do_ais_log | ( | level, | |
fmt, | |||
args... | |||
) |
typedef struct crm_child_s crm_child_t |
char* ais_concat | ( | const char * | prefix, |
const char * | suffix, | ||
char | join | ||
) |
long long ais_get_int | ( | const char * | text, |
char ** | end_text | ||
) |
char* append_member | ( | char * | data, |
crm_node_t * | node | ||
) |
void config_find_done | ( | struct corosync_api_v1 * | config, |
hdb_handle_t | local_handle | ||
) |
hdb_handle_t config_find_init | ( | struct corosync_api_v1 * | config, |
char * | name | ||
) |
hdb_handle_t config_find_next | ( | struct corosync_api_v1 * | config, |
char * | name, | ||
hdb_handle_t | top_handle | ||
) |
char* get_ais_data | ( | const AIS_Message * | msg | ) |
int get_config_opt | ( | struct corosync_api_v1 * | config, |
hdb_handle_t | object_service_handle, | ||
char * | key, | ||
char ** | value, | ||
const char * | fallback | ||
) |
void log_ais_message | ( | int | level, |
const AIS_Message * | msg | ||
) |
void member_loop_fn | ( | gpointer | key, |
gpointer | value, | ||
gpointer | user_data | ||
) |
int pcmk_user_lookup | ( | const char * | name, |
uid_t * | uid, | ||
gid_t * | gid | ||
) |
gboolean process_ais_message | ( | const AIS_Message * | msg | ) |
gboolean route_ais_message | ( | const AIS_Message * | msg, |
gboolean | local | ||
) |
int send_client_ipc | ( | void * | conn, |
const AIS_Message * | ais_msg | ||
) |
int send_client_msg | ( | void * | conn, |
enum crm_ais_msg_class | class, | ||
enum crm_ais_msg_types | type, | ||
const char * | data | ||
) |
int send_plugin_msg | ( | enum crm_ais_msg_types | type, |
const char * | host, | ||
const char * | data | ||
) |
gboolean spawn_child | ( | crm_child_t * | child | ) |
gboolean stop_child | ( | crm_child_t * | child, |
int | signal | ||
) |
void swap_sender | ( | AIS_Message * | msg | ) |
pthread_t crm_wait_thread |
struct pcmk_env_s pcmk_env |