ONLP
Open Network Linux Platform APIs
Functions

Functions

int onlp_attributei_sw_init (void)
 Initialize the attribute subsystem.
 
int onlp_attributei_hw_init (uint32_t flags)
 Initialize the attribute subsystem.
 
int onlp_attributei_sw_denit (void)
 Deinitialize the attribute subsystem.
 
int onlp_attributei_supported (onlp_oid_t oid, const char *attribute)
 Determine whether the OID supports the given attributei. More...
 
int onlp_attributei_set (onlp_oid_t oid, const char *attribute, void *value)
 Set an attribute on the given OID. More...
 
int onlp_attributei_get (onlp_oid_t oid, const char *attribute, void **value)
 Get an attribute from the given OID. More...
 
int onlp_attributei_free (onlp_oid_t oid, const char *attribute, void *value)
 Free an attribute value returned from onlp_attributei_get(). More...
 
int onlp_attributei_onie_info_get (onlp_oid_t oid, onlp_onie_info_t *rv)
 Get an OID's ONIE attribute. More...
 
int onlp_attributei_asset_info_get (onlp_oid_t oid, onlp_asset_info_t *rv)
 Get an OID's Asset attribute. More...
 

Detailed Description

Function Documentation

◆ onlp_attributei_asset_info_get()

int onlp_attributei_asset_info_get ( onlp_oid_t  oid,
onlp_asset_info_t rv 
)

Get an OID's Asset attribute.

Parameters
oidThe target OID.
rv[out] Receives the Asset information if supported.
Note
if rv is NULL you should only return whether the attribute is supported.

◆ onlp_attributei_free()

int onlp_attributei_free ( onlp_oid_t  oid,
const char *  attribute,
void *  value 
)

Free an attribute value returned from onlp_attributei_get().

Parameters
oidThe OID.
attributeThe attribute.
valueThe value.

◆ onlp_attributei_get()

int onlp_attributei_get ( onlp_oid_t  oid,
const char *  attribute,
void **  value 
)

Get an attribute from the given OID.

Parameters
oidThe OID.
attributeThe attribute to retrieve.
[out]valueReceives the attributei's value.

◆ onlp_attributei_onie_info_get()

int onlp_attributei_onie_info_get ( onlp_oid_t  oid,
onlp_onie_info_t *  rv 
)

Get an OID's ONIE attribute.

Access to standard attributes.

Parameters
oidThe target OID
rv[out] Receives the ONIE information if supported.
Note
if rv is NULL you should only return whether the attribute is supported.

◆ onlp_attributei_set()

int onlp_attributei_set ( onlp_oid_t  oid,
const char *  attribute,
void *  value 
)

Set an attribute on the given OID.

Parameters
oidThe OID.
attributeThe attribute name.
valueA pointer to the value.

◆ onlp_attributei_supported()

int onlp_attributei_supported ( onlp_oid_t  oid,
const char *  attribute 
)

Determine whether the OID supports the given attributei.

Parameters
oidThe OID.
attributeThe attribute name.