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

Go to the source code of this file.

Functions

int32_t ocs_scsi_ini_driver_init (int32_t initiator)
 Initialize initiator client. More...
 
int32_t ocs_scsi_ini_io_init (ocs_io_t *io)
 Initialize SCSI IO. More...
 
int32_t ocs_scsi_ini_io_exit (ocs_io_t *io)
 Uninitialize SCSI IO. More...
 
int32_t ocs_scsi_ini_driver_exit (int32_t initiator)
 initiator client exit More...
 
int32_t ocs_scsi_ini_new_device (ocs_t *ocs)
 Initializes any initiator fields on the ocs structure. More...
 
int32_t ocs_scsi_ini_del_device (ocs_t *ocs)
 Tears down target members of ocs structure. More...
 
int32_t ocs_scsi_ini_new_domain (ocs_domain_t *domain)
 accept new domain notification More...
 
int32_t ocs_scsi_host_update_supported_speed (ocs_t *ocs)
 
void ocs_scsi_ini_del_domain (ocs_domain_t *domain)
 accept domain lost notification More...
 
int32_t ocs_scsi_ini_new_sport (ocs_sport_t *sport)
 
void ocs_scsi_ini_del_sport (ocs_sport_t *sport)
 
int32_t ocs_scsi_new_target (ocs_node_t *node)
 receive notification of a new SCSI target node More...
 
int32_t ocs_scsi_del_target (ocs_node_t *node, ocs_scsi_del_target_reason_e reason)
 Delete a SCSI target node. More...
 
void ocs_scsi_ini_ddump (ocs_textbuf_t *textbuf, ocs_scsi_ddump_type_e type, void *obj)
 

Function Details

int32_t ocs_scsi_host_update_supported_speed ( ocs_t *  ocs)

Definition at line 175 of file ocs_ini_stub.c.

void ocs_scsi_ini_ddump ( ocs_textbuf_t *  textbuf,
ocs_scsi_ddump_type_e  type,
void *  obj 
)

Definition at line 266 of file ocs_ini_stub.c.

void ocs_scsi_ini_del_sport ( ocs_sport_t *  sport)

Definition at line 209 of file ocs_ini_stub.c.

int32_t ocs_scsi_ini_driver_exit ( int32_t  initiator)

initiator client exit

Description
Called by OS driver-wide cleanup/exit code to cleanup initiator client.
Parameters
initiatorTRUE for initiator mode
Returns
returns 0 for success, a negative error code value for failure.

Definition at line 103 of file ocs_ini_stub.c.

int32_t ocs_scsi_ini_driver_init ( int32_t  initiator)

Initialize initiator client.

Description
Called by OS initialization code to initialize initiator client. This is called prior to any PCI device enumeration.
Parameters
initiatorTRUE for initiator mode
Returns
Returns 0 on success, or a negative error code value on failure.

Definition at line 51 of file ocs_ini_stub.c.

int32_t ocs_scsi_ini_io_exit ( ocs_io_t *  io)

Uninitialize SCSI IO.

Description
Uninitialize initiator client private data in a SCSI io object.
Parameters
ioPointer to SCSI IO object.
Returns
Returns 0 on success, a negative error code value on failure.

Definition at line 85 of file ocs_ini_stub.c.

int32_t ocs_scsi_ini_io_init ( ocs_io_t *  io)

Initialize SCSI IO.

Description
Initialize SCSI IO, this function is called once per IO during IO pool allocation so that the initiator client may initialize any of its own private data.
Parameters
ioPointer to SCSI IO object.
Returns
Returns 0 on success, a negative error code value on failure.

Definition at line 69 of file ocs_ini_stub.c.

int32_t ocs_scsi_ini_new_sport ( ocs_sport_t *  sport)

Definition at line 203 of file ocs_ini_stub.c.