opensaf  5.21.09
About: OpenSAF is a project focused on Service Availability (SA) that develops middleware based on open and industry standard interfaces for applications requiring uninterrupted 24x7 service.
  Fossies Dox: opensaf-5.21.09.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ncs_main_pub.c File Reference
#include "osaf/configmake.h"
#include <pthread.h>
#include <dlfcn.h>
#include "base/ncsgl_defs.h"
#include "mds/mds_papi.h"
#include "base/ncs_main_papi.h"
#include "base/ncs_mda_papi.h"
#include "base/ncs_lib.h"
#include "base/ncssysf_lck.h"
#include "mds/mds_dl_api.h"
#include "sprr_dl_api.h"
#include "mds/mda_dl_api.h"
#include "base/ncssysf_def.h"
#include "base/ncs_main_pub.h"
#include "base/osaf_utility.h"
Include dependency graph for ncs_main_pub.c:

Go to the source code of this file.

Classes

struct  ncs_agent_data
 
struct  ncs_main_pub_cb
 

Typedefs

typedef uint32_t(* LIB_REQ) (NCS_LIB_REQ_INFO *)
 .............................................................................. More...
 
typedef struct ncs_agent_data NCS_AGENT_DATA
 
typedef struct ncs_main_pub_cb NCS_MAIN_PUB_CB
 

Functions

static uint32_t mainget_node_id (uint32_t *node_id)
 
static uint32_t ncs_non_core_agents_startup (void)
 
unsigned int ncs_agents_startup (void)
 .............................................................................. More...
 
unsigned int ncs_agents_shutdown (void)
 
unsigned int ncs_leap_startup (void)
 
unsigned int ncs_mds_startup (void)
 
unsigned int ncs_core_agents_startup (void)
 
unsigned int ncs_mbca_startup (void)
 
unsigned int ncs_mbca_shutdown (void)
 
void ncs_leap_shutdown ()
 
void ncs_mds_shutdown ()
 
unsigned int ncs_core_agents_shutdown ()
 
NCS_NODE_ID ncs_get_node_id (void)
 
char * ncs_util_search_argv_list (int argc, char *argv[], char *arg_prefix)
 

Variables

static NCS_MAIN_PUB_CB gl_ncs_main_pub_cb
 
static pthread_mutex_t s_agent_startup_mutex = PTHREAD_MUTEX_INITIALIZER
 
static pthread_mutex_t s_leap_core_mutex = PTHREAD_MUTEX_INITIALIZER
 

Typedef Documentation

◆ LIB_REQ

typedef uint32_t(* LIB_REQ) (NCS_LIB_REQ_INFO *)

..............................................................................

MODULE NAME: ncs_main_pub.c

DESCRIPTION: Contains an API that agent starts up NCS.

TRACE GUIDE: Policy is to not use logging/syslog from library code. Only the trace part of logtrace is used from library.

It is possible to turn on trace for the IMMA library used by an application process. This is done by the application defining the environment variable: IMMA_TRACE_PATHNAME. The trace will end up in the file defined by that variable.

TRACE debug traces - aproximates DEBUG TRACE_1 normal but important events - aproximates INFO. TRACE_2 user errors with return code - aproximates NOTICE. TRACE_3 unusual or strange events - aproximates WARNING TRACE_4 library errors ERR_LIBRARY - aproximates ERROR

Definition at line 66 of file ncs_main_pub.c.

◆ NCS_AGENT_DATA

◆ NCS_MAIN_PUB_CB

Function Documentation

◆ mainget_node_id()

uint32_t mainget_node_id ( uint32_t *  node_id)
static

Definition at line 484 of file ncs_main_pub.c.

References fp, NCSCC_RC_FAILURE, and NCSCC_RC_SUCCESS.

Referenced by ncs_leap_startup().

◆ ncs_agents_shutdown()

◆ ncs_agents_startup()

◆ ncs_core_agents_shutdown()

◆ ncs_core_agents_startup()

◆ ncs_get_node_id()

◆ ncs_leap_shutdown()

◆ ncs_leap_startup()

◆ ncs_mbca_shutdown()

◆ ncs_mbca_startup()

◆ ncs_mds_shutdown()

◆ ncs_mds_startup()

◆ ncs_non_core_agents_startup()

uint32_t ncs_non_core_agents_startup ( void  )
static

Definition at line 250 of file ncs_main_pub.c.

References ncs_mbca_startup(), and rc.

Referenced by ncs_agents_startup().

◆ ncs_util_search_argv_list()

char * ncs_util_search_argv_list ( int  argc,
char *  argv[],
char *  arg_prefix 
)

Definition at line 505 of file ncs_main_pub.c.

Referenced by mds_lib_req().

Variable Documentation

◆ gl_ncs_main_pub_cb

◆ s_agent_startup_mutex

pthread_mutex_t s_agent_startup_mutex = PTHREAD_MUTEX_INITIALIZER
static

◆ s_leap_core_mutex

pthread_mutex_t s_leap_core_mutex = PTHREAD_MUTEX_INITIALIZER
static

Definition at line 98 of file ncs_main_pub.c.

Referenced by ncs_core_agents_shutdown(), and ncs_core_agents_startup().