Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ocs_sport.c File Reference
#include "ocs.h"

Go to the source code of this file.

Detailed Description

SLI port (SPORT) functions

Definition in file ocs_sport.c.

Functions

void ocs_mgmt_sport_list (ocs_textbuf_t *textbuf, void *sport)
 
void ocs_mgmt_sport_get_all (ocs_textbuf_t *textbuf, void *sport)
 
int ocs_mgmt_sport_get (ocs_textbuf_t *textbuf, char *parent, char *name, void *sport)
 
int ocs_mgmt_sport_set (char *parent, char *name, char *value, void *sport)
 
int ocs_mgmt_sport_exec (char *parent, char *action, void *arg_in, uint32_t arg_in_length, void *arg_out, uint32_t arg_out_length, void *sport)
 
void ocs_sport_force_free (ocs_sport_t *sport)
 Free memory resources of a SLI port object. More...
 
ocs_sport_t * ocs_sport_get_instance (ocs_domain_t *domain, uint32_t index)
 Return a SLI port object, given an instance index. More...
 
int ocs_ddump_sport (ocs_textbuf_t *textbuf, ocs_sli_port_t *sport)
 Generate sli port ddump. More...
 

Variables

ocs_mgmt_functions_t sport_mgmt_functions
 

Function Details

int ocs_ddump_sport ( ocs_textbuf_t *  textbuf,
ocs_sli_port_t *  sport 
)

Generate sli port ddump.

Generates sli port ddump data

Parameters
textbufpointer to text buffer
sportpointer to SLI4 port
Returns
Returns 0 on success, or a negative value on failure.

Definition at line 127 of file ocs_sport.c.

int ocs_mgmt_sport_exec ( char *  parent,
char *  action,
void *  arg_in,
uint32_t  arg_in_length,
void *  arg_out,
uint32_t  arg_out_length,
void *  sport 
)

Definition at line 280 of file ocs_sport.c.

int ocs_mgmt_sport_get ( ocs_textbuf_t *  textbuf,
char *  parent,
char *  name,
void *  sport 
)

Definition at line 185 of file ocs_sport.c.

void ocs_mgmt_sport_get_all ( ocs_textbuf_t *  textbuf,
void *  sport 
)

Definition at line 228 of file ocs_sport.c.

void ocs_mgmt_sport_list ( ocs_textbuf_t *  textbuf,
void *  sport 
)

Definition at line 157 of file ocs_sport.c.

int ocs_mgmt_sport_set ( char *  parent,
char *  name,
char *  value,
void *  sport 
)

Definition at line 250 of file ocs_sport.c.

void ocs_sport_force_free ( ocs_sport_t *  sport)

Free memory resources of a SLI port object.

Description

After the sport object is freed, its child objects are freed.

Parameters
sportPointer to the SLI port object.
Returns
None.

Definition at line 67 of file ocs_sport.c.

ocs_sport_t* ocs_sport_get_instance ( ocs_domain_t *  domain,
uint32_t  index 
)

Return a SLI port object, given an instance index.

Description

A pointer to a sport object is returned, given its instance index.

Parameters
domainPointer to the domain.
indexInstance index value to find.
Returns
Returns a pointer to the ocs_sport_t object; or NULL.

Definition at line 99 of file ocs_sport.c.

Variable Details

ocs_mgmt_functions_t sport_mgmt_functions
Initial value:
= {
.get_list_handler = ocs_mgmt_sport_list,
.get_handler = ocs_mgmt_sport_get,
.get_all_handler = ocs_mgmt_sport_get_all,
.set_handler = ocs_mgmt_sport_set,
.exec_handler = ocs_mgmt_sport_exec,
}
int ocs_mgmt_sport_set(char *parent, char *name, char *value, void *sport)
Definition: ocs_sport.c:250
void ocs_mgmt_sport_get_all(ocs_textbuf_t *textbuf, void *sport)
Definition: ocs_sport.c:228
int ocs_mgmt_sport_get(ocs_textbuf_t *textbuf, char *parent, char *name, void *sport)
Definition: ocs_sport.c:185
void ocs_mgmt_sport_list(ocs_textbuf_t *textbuf, void *sport)
Definition: ocs_sport.c:157
int ocs_mgmt_sport_exec(char *parent, char *action, void *arg_in, uint32_t arg_in_length, void *arg_out, uint32_t arg_out_length, void *sport)
Definition: ocs_sport.c:280

Definition at line 47 of file ocs_sport.c.