|
corosync 3.1.9
|
#include <config.h>#include <stdlib.h>#include <string.h>#include <corosync/swab.h>#include <corosync/totem/totem.h>#include <corosync/corotypes.h>#include "util.h"#include <corosync/logsys.h>#include <corosync/icmap.h>#include "timer.h"#include <corosync/totem/totempg.h>#include <corosync/totem/totemip.h>#include "main.h"#include "service.h"#include <qb/qbipcs.h>#include <qb/qbloop.h>
Go to the source code of this file.
Data Structures | |
| struct | seus_handler_data |
| struct | service_unlink_and_exit_data |
Typedefs | |
| typedef int(* | schedwrk_cast) (const void *) |
Functions | |
| LOGSYS_DECLARE_SUBSYS ("SERV") | |
| char * | corosync_service_link_and_init (struct corosync_api_v1 *corosync_api, struct default_service *service) |
| Link and initialize a service. | |
| unsigned int | corosync_service_defaults_link_and_init (struct corosync_api_v1 *corosync_api) |
| Load all of the default services. | |
| void | corosync_service_unlink_all (struct corosync_api_v1 *api, void(*unlink_all_complete)(void)) |
| Unlink and exit all corosync services. | |
| unsigned int | corosync_service_unlink_and_exit (struct corosync_api_v1 *api, const char *service_name, unsigned int service_ver) |
| Unlink and exit a service. | |
| unsigned int corosync_service_defaults_link_and_init | ( | struct corosync_api_v1 * | corosync_api | ) |
Load all of the default services.
Definition at line 339 of file service.c.
References COROSYNC_DONE_SERVICE_ENGINE_INIT, corosync_exit_error, corosync_service_link_and_init(), default_service::loader, log_printf, LOGSYS_LEVEL_ERROR, and corosync_service_engine::name.
| char * corosync_service_link_and_init | ( | struct corosync_api_v1 * | corosync_api, |
| struct default_service * | service | ||
| ) |
Link and initialize a service.
Definition at line 117 of file service.c.
References corosync_service_engine::config_init_fn, corosync_service, cs_ipcs_service_init(), corosync_service_engine::exec_engine_count, corosync_service_engine::exec_init_fn, ICMAP_KEYNAME_MAXLEN, icmap_set_string(), icmap_set_uint16(), icmap_set_uint32(), icmap_set_uint64(), corosync_service_engine::id, default_service::loader, log_printf, LOGSYS_LEVEL_NOTICE, default_service::name, corosync_service_engine::name, service_stats_rx, service_stats_tx, and default_service::ver.
Referenced by corosync_service_defaults_link_and_init(), and votequorum_init().
| void corosync_service_unlink_all | ( | struct corosync_api_v1 * | api, |
| void(*)(void) | unlink_all_complete | ||
| ) |
Unlink and exit all corosync services.
Definition at line 394 of file service.c.
References seus_handler_data::api, and cs_poll_handle_get().
Referenced by corosync_shutdown_request().
| unsigned int corosync_service_unlink_and_exit | ( | struct corosync_api_v1 * | api, |
| const char * | service_name, | ||
| unsigned int | service_ver | ||
| ) |
Unlink and exit a service.
Definition at line 450 of file service.c.
References service_unlink_and_exit_data::api, cs_poll_handle_get(), service_unlink_and_exit_data::name, and service_unlink_and_exit_data::ver.
| LOGSYS_DECLARE_SUBSYS | ( | "SERV" | ) |
| struct corosync_service_engine* corosync_service[SERVICES_COUNT_MAX] |
Definition at line 110 of file service.c.
Referenced by corosync_sending_allowed(), corosync_service_link_and_init(), corosync_state_dump(), cs_ipcs_get_conn_stats(), and main_mcast().
| const char* service_stats_rx[SERVICES_COUNT_MAX][SERVICE_HANDLER_MAXIMUM_COUNT] |
Definition at line 112 of file service.c.
Referenced by corosync_service_link_and_init().
| const char* service_stats_tx[SERVICES_COUNT_MAX][SERVICE_HANDLER_MAXIMUM_COUNT] |
Definition at line 113 of file service.c.
Referenced by corosync_service_link_and_init(), and main_mcast().