| ONLP
    Open Network Linux Platform APIs | 
| Functions | |
| int | onlp_fani_sw_init (void) | 
| Software initialization of the Fan module. | |
| int | onlp_fani_hw_init (uint32_t flags) | 
| Hardware initialization of the Fan module.  More... | |
| int | onlp_fani_sw_denit (void) | 
| Deinitialize the fan software module.  More... | |
| int | onlp_fani_id_validate (onlp_oid_id_t id) | 
| Validate a fan id.  More... | |
| int | onlp_fani_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *hdr) | 
| Retrieve the fan's OID hdr.  More... | |
| int | onlp_fani_info_get (onlp_oid_id_t id, onlp_fan_info_t *rv) | 
| Get the information structure for the given fan OID.  More... | |
| int | onlp_fani_caps_get (onlp_oid_id_t id, uint32_t *rv) | 
| Get the fan capabilities.  More... | |
| int | onlp_fani_rpm_set (onlp_oid_id_t id, int rpm) | 
| Set the fan speed in RPM.  More... | |
| int | onlp_fani_percentage_set (onlp_oid_id_t id, int p) | 
| Set the fan speed in percentage.  More... | |
| int | onlp_fani_dir_set (onlp_oid_id_t id, onlp_fan_dir_t dir) | 
| Set the fan direction (if supported).  More... | |
| int onlp_fani_caps_get | ( | onlp_oid_id_t | id, | 
| uint32_t * | rv | ||
| ) | 
Get the fan capabilities.
| id | The fan id. | |
| [out] | rv | The fan capabilities | 
| int onlp_fani_dir_set | ( | onlp_oid_id_t | id, | 
| onlp_fan_dir_t | dir | ||
| ) | 
Set the fan direction (if supported).
| id | The fan OID | 
| dir | The direction. | 
| int onlp_fani_hdr_get | ( | onlp_oid_id_t | id, | 
| onlp_oid_hdr_t * | hdr | ||
| ) | 
Retrieve the fan's OID hdr.
| id | The fan id. | |
| [out] | hdr | Receives the OID header. | 
| int onlp_fani_hw_init | ( | uint32_t | flags | ) | 
Hardware initialization of the Fan module.
| flags | The hardware initialization flags. | 
| int onlp_fani_id_validate | ( | onlp_oid_id_t | id | ) | 
Validate a fan id.
| id | The fan id. | 
| int onlp_fani_info_get | ( | onlp_oid_id_t | id, | 
| onlp_fan_info_t * | rv | ||
| ) | 
Get the information structure for the given fan OID.
| id | The fan id | |
| [out] | rv | Receives the fan information. | 
| int onlp_fani_percentage_set | ( | onlp_oid_id_t | id, | 
| int | p | ||
| ) | 
Set the fan speed in percentage.
| id | The fan OID. | 
| p | The new fan speed percentage. | 
| int onlp_fani_rpm_set | ( | onlp_oid_id_t | id, | 
| int | rpm | ||
| ) | 
Set the fan speed in RPM.
| id | The fan OID | 
| rpm | The new RPM | 
| int onlp_fani_sw_denit | ( | void | ) | 
Deinitialize the fan software module.
 1.8.13
 1.8.13