OpenNSL API Guide and Reference Manual
Data Structures | Macros | Typedefs | Functions
init.h File Reference
#include <opennsl/types.h>
#include <opennsl/initX.h>

Go to the source code of this file.

Data Structures

struct  opennsl_info_s
 OPENNSL Information structure. More...
 

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.