ONLP
Open Network Linux Platform APIs
module
inc
onlp
platform.h
Go to the documentation of this file.
1
/************************************************************
2
* <bsn.cl fy=2017 v=onl>
3
*
4
* Copyright 2017 Big Switch Networks, Inc.
5
*
6
* Licensed under the Eclipse Public License, Version 1.0 (the
7
* "License"); you may not use this file except in compliance
8
* with the License. You may obtain a copy of the License at
9
*
10
* http://www.eclipse.org/legal/epl-v10.html
11
*
12
* Unless required by applicable law or agreed to in writing,
13
* software distributed under the License is distributed on an
14
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
15
* either express or implied. See the License for the specific
16
* language governing permissions and limitations under the
17
* License.
18
*
19
* </bsn.cl>
20
********************************************************/
28
#ifndef __ONLP_PLATFORM_H__
29
#define __ONLP_PLATFORM_H__
30
31
#include <
onlp/onlp_config.h
>
32
#include <onlp/onlp.h>
33
34
#include <AIM/aim_pvs.h>
35
39
char
*
onlp_platform_name_get
(
void
);
40
44
int
onlp_platform_sw_init
(
const
char
* platform);
45
50
int
onlp_platform_hw_init
(uint32_t flags);
51
58
int
onlp_platform_sw_denit
(
void
);
59
64
int
onlp_platform_manager_start
(
int
block);
65
70
int
onlp_platform_manager_stop
(
int
block);
71
75
int
onlp_platform_manager_join
(
void
);
76
83
void
onlp_platform_manager_manage
(
void
);
84
88
void
89
onlp_platform_manager_daemon
(
const
char
* name,
const
char
* logfile,
90
const
char
* pidfile,
char
** argv);
94
int
onlp_platform_debug
(aim_pvs_t* pvs,
int
argc,
char
** argv);
95
96
#endif
/* __ONLP_PLATFORM_H__ */
97
/* @} */
onlp_config.h
onlp Configuration Header
onlp_platform_hw_init
int onlp_platform_hw_init(uint32_t flags)
Platform Hardware init.
onlp_platform_sw_init
int onlp_platform_sw_init(const char *platform)
Platform software init.
onlp_platform_sw_denit
int onlp_platform_sw_denit(void)
Deinitialize the chassis software module.
onlp_platform_name_get
char * onlp_platform_name_get(void)
Get the current ONL platform name.
onlp_platform_manager_start
int onlp_platform_manager_start(int block)
Start the platform management thread.
onlp_platform_manager_stop
int onlp_platform_manager_stop(int block)
Stop the platform management thread.
onlp_platform_manager_join
int onlp_platform_manager_join(void)
Join the platform management thread.
onlp_platform_debug
int onlp_platform_debug(aim_pvs_t *pvs, int argc, char **argv)
Call the platform debug hook.
onlp_platform_manager_manage
void onlp_platform_manager_manage(void)
Perform any pending platform management activities.
onlp_platform_manager_daemon
void onlp_platform_manager_daemon(const char *name, const char *logfile, const char *pidfile, char **argv)
Run in platform manager dameon mode.
Generated on Wed May 29 2019 16:19:07 for ONLP by
1.8.13