Go to the source code of this file.
iSCSI transport API
Definition in file ocs_xport.c.
Data Structures | |
| struct | ocs_xport_gen_arg_t |
Functions | |
| ocs_xport_t * | ocs_xport_alloc (ocs_t *ocs) |
| allocate a transport object More... | |
| static void | ocs_xport_cxn_cb (void *ul_arg, int32_t status, uint32_t ext_status, void *params) |
| int32_t | ocs_xport_control (ocs_xport_t *xport, ocs_xport_ctrl_e cmd,...) |
| Perform transport attach function. More... | |
| int32_t | ocs_xport_status (ocs_xport_t *xport, ocs_xport_status_e cmd, ocs_xport_stats_t *result) |
| Return status on a link. More... | |
| void | ocs_xport_free (ocs_xport_t *xport) |
| free a transport object More... | |
| ocs_xport_t * ocs_xport_alloc | ( | ocs_t * | ocs | ) |
allocate a transport object
A transport object is allocated, and associated with a device instance.
| ocs | pointer to device instance |
Definition at line 60 of file ocs_xport.c.
| int32_t ocs_xport_control | ( | ocs_xport_t * | xport, |
| ocs_xport_ctrl_e | cmd, | ||
| ... | |||
| ) |
Perform transport attach function.
Perform attach function, which for the FC transport makes a HAL call to bring up the link
| xport | pointer to transport object |
| cmd | command to execute |
ocs_xport_control(ocs_xport_t *xport, OCS_XPORT_PORT_ONLINE) ocs_xport_control(ocs_xport_t *xport, OCS_XPORT_PORT_OFFLINE) ocs_xport_control(ocs_xport_t *xport, OCS_XPORT_PORT_SHUTDOWN) ocs_xport_control(ocs_xport_t *xport, OCS_XPORT_POST_NODE_EVENT, ocs_node_t *node, ocs_sm_event_t, void *context)
Definition at line 100 of file ocs_xport.c.
|
static |
Definition at line 73 of file ocs_xport.c.
| void ocs_xport_free | ( | ocs_xport_t * | xport | ) |
free a transport object
The transport object is free'd
| xport | pointer to transport object |
Definition at line 471 of file ocs_xport.c.
| int32_t ocs_xport_status | ( | ocs_xport_t * | xport, |
| ocs_xport_status_e | cmd, | ||
| ocs_xport_stats_t * | result | ||
| ) |
Return status on a link.
| xport | Pointer to transport object. |
| cmd | Command to execute. |
| result | Pointer to result value. |
ocs_xport_status(ocs_xport_t *xport, OCS_XPORT_PORT_STATUS)
Definition at line 426 of file ocs_xport.c.