corosync
2.4.3
|
#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. More... | |
unsigned int | corosync_service_defaults_link_and_init (struct corosync_api_v1 *corosync_api) |
Load all of the default services. More... | |
void | corosync_service_unlink_all (struct corosync_api_v1 *api, void(*unlink_all_complete)(void)) |
Unlink and exit all corosync services. More... | |
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. More... | |
Variables | |
struct corosync_service_engine * | corosync_service [SERVICES_COUNT_MAX] |
const char * | service_stats_rx [SERVICES_COUNT_MAX][SERVICE_HANDLER_MAXIMUM_COUNT] |
const char * | service_stats_tx [SERVICES_COUNT_MAX][SERVICE_HANDLER_MAXIMUM_COUNT] |
unsigned int corosync_service_defaults_link_and_init | ( | struct corosync_api_v1 * | corosync_api | ) |
char* corosync_service_link_and_init | ( | struct corosync_api_v1 * | corosync_api, |
struct default_service * | service | ||
) |
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.
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 seus_handler_data::api, 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_state_dump(), cs_ipcs_stats_update(), and main_mcast().
const char* service_stats_rx[SERVICES_COUNT_MAX][SERVICE_HANDLER_MAXIMUM_COUNT] |
const char* service_stats_tx[SERVICES_COUNT_MAX][SERVICE_HANDLER_MAXIMUM_COUNT] |
Definition at line 113 of file service.c.
Referenced by main_mcast().