ONLP
Open Network Linux Platform APIs
Functions
Platform Initialization and Management

Functions

char * onlp_platform_name_get (void)
 Get the current ONL platform name.
 
int onlp_platform_sw_init (const char *platform)
 Platform software init.
 
int onlp_platform_hw_init (uint32_t flags)
 Platform Hardware init. More...
 
int onlp_platform_sw_denit (void)
 Deinitialize the chassis software module. More...
 
int onlp_platform_manager_start (int block)
 Start the platform management thread. More...
 
int onlp_platform_manager_stop (int block)
 Stop the platform management thread. More...
 
int onlp_platform_manager_join (void)
 Join the platform management thread.
 
void onlp_platform_manager_manage (void)
 Perform any pending platform management activities. More...
 
void onlp_platform_manager_daemon (const char *name, const char *logfile, const char *pidfile, char **argv)
 Run in platform manager dameon mode.
 
int onlp_platform_debug (aim_pvs_t *pvs, int argc, char **argv)
 Call the platform debug hook.
 

Detailed Description

Function Documentation

◆ onlp_platform_hw_init()

int onlp_platform_hw_init ( uint32_t  flags)

Platform Hardware init.

Parameters
flagsThe init flags.

◆ onlp_platform_manager_manage()

void onlp_platform_manager_manage ( void  )

Perform any pending platform management activities.

Note
A call to this function will perform any pending platform management activities. It is not intended to block for an extended period of time.

◆ onlp_platform_manager_start()

int onlp_platform_manager_start ( int  block)

Start the platform management thread.

Parameters
blockWhether the call should block on completion.

◆ onlp_platform_manager_stop()

int onlp_platform_manager_stop ( int  block)

Stop the platform management thread.

Parameters
blockBlock on termination.

◆ onlp_platform_sw_denit()

int onlp_platform_sw_denit ( void  )

Deinitialize the chassis software module.

Note
The primary purpose of this API is to properly deallocate any resources used by the module in order faciliate detection of real resouce leaks.