NCBI C++ ToolKit
|
Go to the source code of this file.
Go to the SVN repository for this file.
Functions | |
const SSERV_VTable * | SERV_LBSMD_Open (SERV_ITER iter, SSERV_Info **info, HOST_INFO *host_info, int no_dispd) |
const char * | LBSMD_GetConfig (void) |
HEAP | LBSMD_GetHeapCopy (TNCBI_Time time) |
const char * | LBSMD_GetHostParameter (unsigned int addr, const char *name) |
ESwitch | LBSMD_FastHeapAccess (ESwitch onoff) |
unsigned int | LBSMD_GetLocalHostAddress (const void *v) |
int | LBSM_HINFO_CpuCount (const HOST_INFO hinfo) |
int | LBSM_HINFO_CpuUnits (const HOST_INFO hinfo) |
double | LBSM_HINFO_CpuClock (const HOST_INFO hinfo) |
int | LBSM_HINFO_TaskCount (const HOST_INFO hinfo) |
int | LBSM_HINFO_Memusage (const HOST_INFO hinfo, double memusage[5]) |
int | LBSM_HINFO_MachineParams (const HOST_INFO hinfo, SHINFO_Params *p) |
int | LBSM_HINFO_PortUsage (const HOST_INFO hinfo, SHINFO_PortUsage ports[], size_t count) |
int | LBSM_HINFO_LoadAverage (const HOST_INFO hinfo, double lavg[2]) |
int | LBSM_HINFO_Status (const HOST_INFO hinfo, double status[2]) |
int | LBSM_LBSMD (int check_n_lock) |
Definition at line 1238 of file ncbi_lbsmd.c.
References assert, s_GetSysinfo(), and si.
Referenced by HINFO_CpuClock().
Definition at line 1224 of file ncbi_lbsmd.c.
References s_GetSysinfo(), and si.
Referenced by HINFO_CpuCount().
Definition at line 1231 of file ncbi_lbsmd.c.
References s_GetSysinfo(), and si.
Referenced by HINFO_CpuUnits().
Definition at line 1311 of file ncbi_lbsmd.c.
References s_GetSysinfo(), and si.
Referenced by HINFO_LoadAverage().
int LBSM_HINFO_MachineParams | ( | const HOST_INFO | hinfo, |
SHINFO_Params * | p | ||
) |
Definition at line 1267 of file ncbi_lbsmd.c.
References SHINFO_Params::arch, SHINFO_Params::bits, SHINFO_Params::bootup, SHINFO_Params::daemon, SHINFO_Params::kernel, LBSM_KERNELID_SVPKBIT, LBSM_KERNELID_SVPKDIV, SHINFO_Params::major, SHINFO_Params::minor, NETDAEMONS_MAJOR_OF, NETDAEMONS_MINOR_OF, NETDAEMONS_PATCH_OF, SHINFO_Params::ostype, SHINFO_Params::patch, SHINFO_Params::pgsize, s_GetSysinfo(), si, SHINFO_Params::startup, and SHINFO_Params::svcpack.
Referenced by HINFO_MachineParams().
Definition at line 1253 of file ncbi_lbsmd.c.
References s_GetSysinfo(), and si.
Referenced by HINFO_Memusage().
int LBSM_HINFO_PortUsage | ( | const HOST_INFO | hinfo, |
SHINFO_PortUsage | ports[], | ||
size_t | count | ||
) |
Definition at line 1293 of file ncbi_lbsmd.c.
References count, n, SHINFO_PortUsage::port, s_GetSysinfo(), si, and SHINFO_PortUsage::used.
Referenced by HINFO_PortUsage().
Definition at line 1321 of file ncbi_lbsmd.c.
References s_GetSysinfo(), and si.
Referenced by HINFO_Status().
Definition at line 1246 of file ncbi_lbsmd.c.
References s_GetSysinfo(), and si.
Referenced by HINFO_TaskCount().
Definition at line 658 of file ncbi_lbsm_ipc.c.
References CORE_Once, g_LBSM_NOSYSVIPC, LBSM_MUTEX_KEY, LBSM_SEM_PROT, and s_Muxid.
Referenced by s_LBSMD().
Definition at line 1103 of file ncbi_lbsmd.c.
References eDefault, and s_LBSM_FastHeapAccess.
const char* LBSMD_GetConfig | ( | void | ) |
Definition at line 1120 of file ncbi_lbsmd.c.
References CORE_LOCK_WRITE, CORE_LOGF, CORE_UNLOCK, eLOG_Trace, heap, HEAP_Base(), HEAP_Detach(), HEAP_Serial(), LBSM_GetConfig(), s_Fini(), s_GetHeapCopy(), s_LBSM_FastHeapAccess, s_LBSMD(), and strdup.
HEAP LBSMD_GetHeapCopy | ( | TNCBI_Time | time | ) |
Definition at line 1113 of file ncbi_lbsmd.c.
References s_GetHeapCopy().
Definition at line 1148 of file ncbi_lbsmd.c.
References CORE_LOCK_WRITE, CORE_LOGF, CORE_UNLOCK, eLOG_Trace, env, heap, HEAP_Base(), HEAP_Detach(), HEAP_Serial(), LBSM_LookupHost(), len, s_GetHeapCopy(), s_GetLocalHostAddress(), s_HostEnv(), s_LBSMD(), SERV_ANYHOST, SERV_LOCALHOST, strncasecmp, and strndup.
Referenced by SNetServerPoolImpl::Init().
Definition at line 123 of file ncbi_lbsmd.c.
References eDefault, eLBSM_Version, SLBSM_Version::entry, SHEAP_Block::flag, SLBSM_Entry::head, s_Localhost(), SHEAP_Block::size, SOCK_GetLocalHostAddress(), and SLBSM_Entry::type.
Referenced by s_GetLocalHostAddress().
const SSERV_VTable* SERV_LBSMD_Open | ( | SERV_ITER | iter, |
SSERV_Info ** | info, | ||
HOST_INFO * | host_info, | ||
int | no_dispd | ||
) |
Definition at line 1072 of file ncbi_lbsmd.c.
References SSERV_IterTag::data, free(), g_NCBI_ConnectRandomSeed, info, kLbsmdOp, NCBI_CONNECT_SRAND_ADDEND, s_Close(), s_GetNextInfo(), s_IfDaemon(), s_LBSMD(), SSERV_IterTag::time, and tmp.
Referenced by x_Open().