corosync  2.3.6
Data Structures | Typedefs | Functions | Variables
service.c File Reference
#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>
Include dependency graph for service.c:

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_enginecorosync_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]
 

Typedef Documentation

typedef int(* schedwrk_cast) (const void *)

Definition at line 448 of file service.c.

Function Documentation

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.

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 
)
LOGSYS_DECLARE_SUBSYS ( "SERV"  )

Variable Documentation

struct corosync_service_engine* corosync_service[SERVICES_COUNT_MAX]
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().