#include "ocs.h"Go to the source code of this file.
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 |
| int ocs_ddump_sport | ( | ocs_textbuf_t * | textbuf, |
| ocs_sli_port_t * | sport | ||
| ) |
Generate sli port ddump.
Generates sli port ddump data
| textbuf | pointer to text buffer |
| sport | pointer to SLI4 port |
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.
After the sport object is freed, its child objects are freed.
| sport | Pointer to the SLI port object. |
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.
A pointer to a sport object is returned, given its instance index.
| domain | Pointer to the domain. |
| index | Instance index value to find. |
Definition at line 99 of file ocs_sport.c.
| ocs_mgmt_functions_t sport_mgmt_functions |
Definition at line 47 of file ocs_sport.c.