Functions, Adlink_switch_chip_init (), Adlink_config_write () – ADLINK aTCA-N700 User Manual

Page 13: Table 1- 1, return code description

Advertising
background image

Switch Manager API Programming Guide

13

Table 1- 1, Return Code Description

Return Code

Description

ADLINK_E_NONE

API run successfully

ADLINK_E_PARA

Parameter related error

ADLINK_E_RESOURCE

Table item overflow

ADLINK_E_EXIST

Table item already existing

ADLINK_E_FIND

Table item non-existentent

ADLINK_E_SOCKET

Error occurs when connecting to BCM server

ADLINK_E_MALLOC

Error occurs when memory allocation

ADLINK_E_OPEN

Error occurs when open/fopen a handle

ADLINK_E_OTHER

Other error

ADLINK_E_SERVER_BASE For a meaningful error code form server, we return it with

this value added. So, if the returned code is less than this

value, we can subtract this value and get the real return

value from server. This is useful for debugging.

Functions

adlink_switch_chip_init ()

PROTOTYPE

int adlink_switch_chip_init(UINT32 server_ip)

DESCRIPTION

This function is used to init the switch chip.

PARAMETERS

server_ip

[IN] IP address of the server

RETURN

See the description of status_t above.

adlink_config_write ()

PROTOTYPE

int adlink_config_write()

DESCRIPTION

This function is used to write the current configuration into file. After the function is called

successfully, the configuration will still be in effect after the system reboots.

Advertising