Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IO allocation

Functions

ocs_io_t * ocs_io_pool_io_alloc (ocs_io_pool_t *io_pool)
 Allocate an object used to track an IO. More...
 
void ocs_io_pool_io_free (ocs_io_pool_t *io_pool, ocs_io_t *io)
 Free an object used to track an IO. More...
 
ocs_io_t * ocs_io_find_tgt_io (ocs_t *ocs, ocs_node_t *node, uint16_t ox_id, uint16_t rx_id)
 Find an I/O given it's node and ox_id. More...
 
ocs_io_t * ocs_io_get_instance (ocs_t *ocs, uint32_t index)
 Return IO context given the instance index. More...
 

Function Details

ocs_io_t* ocs_io_find_tgt_io ( ocs_t *  ocs,
ocs_node_t *  node,
uint16_t  ox_id,
uint16_t  rx_id 
)

Find an I/O given it's node and ox_id.

Parameters
ocsDriver instance's software context.
nodePointer to node.
ox_idOX_ID to find.
rx_idRX_ID to find (0xffff for unassigned).

Definition at line 316 of file ocs_io.c.

ocs_io_t* ocs_io_get_instance ( ocs_t *  ocs,
uint32_t  index 
)

Return IO context given the instance index.

Description
Returns a pointer to the IO context given by the instance index.
Parameters
ocsPointer to driver structure.
indexIO instance index to return.
Returns
Returns a pointer to the IO context, or NULL if not found.

Definition at line 366 of file ocs_io.c.

ocs_io_t* ocs_io_pool_io_alloc ( ocs_io_pool_t *  io_pool)

Allocate an object used to track an IO.

Parameters
io_poolPointer to the IO pool.
Returns
Returns the pointer to a new object, or NULL if none available.

Definition at line 239 of file ocs_io.c.

void ocs_io_pool_io_free ( ocs_io_pool_t *  io_pool,
ocs_io_t *  io 
)

Free an object used to track an IO.

Parameters
io_poolPointer to IO pool object.
ioPointer to the IO object.

Definition at line 283 of file ocs_io.c.