|
ONLP
Open Network Linux Platform APIs
|
Macros | |
| #define | ONLP_THERMAL_INFO_ENTRY_INIT(_id, _desc, _parent) |
| #define | ONLP_CHASSIS_THERMAL_INFO_ENTRY_INIT(_id, _desc) ONLP_THERMAL_INFO_ENTRY_INIT(_id, _desc, ONLP_OID_CHASSIS) |
| #define | ONLP_PSU_THERMAL_INFO_ENTRY_INIT(_id, _desc, _psu_id) ONLP_THERMAL_INFO_ENTRY_INIT(_id, _desc, ONLP_PSU_ID_CREATE(_psu_id)) |
Functions | |
| int | onlp_thermali_sw_init (void) |
| Software initialization of the Thermal module. | |
| int | onlp_thermali_hw_init (uint32_t flags) |
| Hardware initialization of the Thermal module. More... | |
| int | onlp_thermali_sw_denit (void) |
| Deinitialize the thermal software module. More... | |
| int | onlp_thermali_id_validate (onlp_oid_id_t id) |
| Validate a thermal oid. More... | |
| int | onlp_thermali_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *rv) |
| Retrieve the thermal's oid header. More... | |
| int | onlp_thermali_info_get (onlp_oid_id_t id, onlp_thermal_info_t *rv) |
| Get the information for the given thermal OID. More... | |
| #define ONLP_CHASSIS_THERMAL_INFO_ENTRY_INIT | ( | _id, | |
| _desc | |||
| ) | ONLP_THERMAL_INFO_ENTRY_INIT(_id, _desc, ONLP_OID_CHASSIS) |
This macro should be used to statically initialize a chassis thermal info structure.
| #define ONLP_PSU_THERMAL_INFO_ENTRY_INIT | ( | _id, | |
| _desc, | |||
| _psu_id | |||
| ) | ONLP_THERMAL_INFO_ENTRY_INIT(_id, _desc, ONLP_PSU_ID_CREATE(_psu_id)) |
This macro should be used to statically initialize a PSU thermal info structure.
| #define ONLP_THERMAL_INFO_ENTRY_INIT | ( | _id, | |
| _desc, | |||
| _parent | |||
| ) |
This macro should be used in your implementation to declare your static chassis thermal sensors.
| int onlp_thermali_hdr_get | ( | onlp_oid_id_t | id, |
| onlp_oid_hdr_t * | rv | ||
| ) |
Retrieve the thermal's oid header.
| id | The thermal oid. | |
| [out] | rv | Receives the header. |
| int onlp_thermali_hw_init | ( | uint32_t | flags | ) |
Hardware initialization of the Thermal module.
| flags | The hardware initialization flags. |
| int onlp_thermali_id_validate | ( | onlp_oid_id_t | id | ) |
Validate a thermal oid.
| id | The thermal id. |
| int onlp_thermali_info_get | ( | onlp_oid_id_t | id, |
| onlp_thermal_info_t * | rv | ||
| ) |
Get the information for the given thermal OID.
| id | The Thermal OID | |
| [out] | rv | Receives the thermal information. |
| int onlp_thermali_sw_denit | ( | void | ) |
Deinitialize the thermal software module.
1.8.13