|
OpenNSL API Guide and Reference Manual
|
Data Structures | |
| struct | opennsl_info_s |
| OPENNSL Information structure. More... | |
Files | |
| file | init.h |
| file | initX.h |
Macros | |
| #define | _opennsl_shutdown(unit) OPENNSL_E_NONE |
Typedefs | |
| typedef struct opennsl_info_s | opennsl_info_t |
| OPENNSL Information structure. | |
Functions | |
| int | opennsl_attach (int unit, char *type, char *subtype, int remunit) LIB_DLL_EXPORTED |
| Attach a device as a OPENNSL unit. | |
| int | opennsl_attach_check (int unit) LIB_DLL_EXPORTED |
| Determine if a OPENNSL unit is attached. | |
| int | opennsl_attach_max (int *max_units) LIB_DLL_EXPORTED |
| Determine the highest OPENNSL unit currently attached. | |
| int | opennsl_detach (int unit) LIB_DLL_EXPORTED |
| Detach a device as a OPENNSL unit. | |
| int | opennsl_info_get (int unit, opennsl_info_t *info) LIB_DLL_EXPORTED |
| Get information about a OPENNSL unit. | |
| void | opennsl_info_t_init (opennsl_info_t *info) LIB_DLL_EXPORTED |
| Initialize the OPENNSL Information structure. | |
| #define _opennsl_shutdown | ( | unit | ) | OPENNSL_E_NONE |
| typedef struct opennsl_info_s opennsl_info_t |
OPENNSL Information structure.
| int opennsl_attach | ( | int | unit, |
| char * | type, | ||
| char * | subtype, | ||
| int | remunit | ||
| ) |
Attach a device as a OPENNSL unit.
| unit | [IN] Unit number. |
| type | [IN] Type of OPENNSL API dispatch driver |
| subtype | [IN] Argument to dispatch driver |
| remunit | [IN] Underlying remote unit |
| unit | the attached non-negative unit number (if successful) |
| OPENNSL_E_MEMORY | memory allocation failure |
| OPENNSL_E_CONFIG | dispatch driver not found |
| OPENNSL_E_FULL | no available unit numbers |
| OPENNSL_E_EXISTS | requested unit number already attached |
| OPENNSL_E_XXX |
| int opennsl_attach_check | ( | int | unit | ) |
Determine if a OPENNSL unit is attached.
| unit | [IN] Unit number. |
| OPENNSL_E_UNIT | unit is not attached |
| OPENNSL_E_NONE | unit is attached |
| int opennsl_attach_max | ( | int * | max_units | ) |
Determine the highest OPENNSL unit currently attached.
| max_units | [OUT] highest unit number |
| OPENNSL_E_NONE |
Referenced by main().
| int opennsl_detach | ( | int | unit | ) |
Detach a device as a OPENNSL unit.
| unit | [IN] Unit number. |
| OPENNSL_E_XXX |
| int opennsl_info_get | ( | int | unit, |
| opennsl_info_t * | info | ||
| ) |
Get information about a OPENNSL unit.
| unit | [IN] Unit number. |
| info | [OUT] OPENNSL information structure, as defined in =opennsl_info_t |
| OPENNSL_E_XXX |
Referenced by example_create_meter(), example_is_dnx_device(), example_is_qmx_device(), init_portmap(), and main().
| void opennsl_info_t_init | ( | opennsl_info_t * | info | ) |
Initialize the OPENNSL Information structure.
| info | [IN,OUT] Pointer to OPENNSL Information structure. |
| None. |