Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
target_core_fabric.h File Reference

Go to the source code of this file.

Data Structures

struct  target_core_fabric_ops
 

Functions

struct se_sessiontransport_init_session (void)
 
void __transport_register_session (struct se_portal_group *, struct se_node_acl *, struct se_session *, void *)
 
void transport_register_session (struct se_portal_group *, struct se_node_acl *, struct se_session *, void *)
 
void target_get_session (struct se_session *)
 
void target_put_session (struct se_session *)
 
void transport_free_session (struct se_session *)
 
void target_put_nacl (struct se_node_acl *)
 
void transport_deregister_session_configfs (struct se_session *)
 
void transport_deregister_session (struct se_session *)
 
void transport_init_se_cmd (struct se_cmd *, struct target_core_fabric_ops *, struct se_session *, u32, int, int, unsigned char *)
 
int transport_lookup_cmd_lun (struct se_cmd *, u32)
 
int target_setup_cmd_from_cdb (struct se_cmd *, unsigned char *)
 
int target_submit_cmd_map_sgls (struct se_cmd *, struct se_session *, unsigned char *, unsigned char *, u32, u32, int, int, int, struct scatterlist *, u32, struct scatterlist *, u32)
 
int target_submit_cmd (struct se_cmd *, struct se_session *, unsigned char *, unsigned char *, u32, u32, int, int, int)
 
int target_submit_tmr (struct se_cmd *se_cmd, struct se_session *se_sess, unsigned char *sense, u32 unpacked_lun, void *fabric_tmr_ptr, unsigned char tm_type, gfp_t, unsigned int, int)
 
int transport_handle_cdb_direct (struct se_cmd *)
 
int transport_generic_map_mem_to_cmd (struct se_cmd *cmd, struct scatterlist *, u32, struct scatterlist *, u32)
 
int transport_generic_new_cmd (struct se_cmd *)
 
void target_execute_cmd (struct se_cmd *cmd)
 
void transport_generic_free_cmd (struct se_cmd *, int)
 
bool transport_wait_for_tasks (struct se_cmd *)
 
int transport_check_aborted_status (struct se_cmd *, int)
 
int transport_send_check_condition_and_sense (struct se_cmd *, u8, int)
 
int target_put_sess_cmd (struct se_session *, struct se_cmd *)
 
void target_sess_cmd_list_set_waiting (struct se_session *)
 
void target_wait_for_sess_cmds (struct se_session *, int)
 
int core_alua_check_nonop_delay (struct se_cmd *)
 
int core_tmr_alloc_req (struct se_cmd *, void *, u8, gfp_t)
 
void core_tmr_release_req (struct se_tmr_req *)
 
int transport_generic_handle_tmr (struct se_cmd *)
 
void transport_generic_request_failure (struct se_cmd *)
 
int transport_lookup_tmr_lun (struct se_cmd *, u32)
 
struct se_node_aclcore_tpg_check_initiator_node_acl (struct se_portal_group *, unsigned char *)
 
void core_tpg_clear_object_luns (struct se_portal_group *)
 
struct se_node_aclcore_tpg_add_initiator_node_acl (struct se_portal_group *, struct se_node_acl *, const char *, u32)
 
int core_tpg_del_initiator_node_acl (struct se_portal_group *, struct se_node_acl *, int)
 
int core_tpg_set_initiator_node_queue_depth (struct se_portal_group *, unsigned char *, u32, int)
 
int core_tpg_register (struct target_core_fabric_ops *, struct se_wwn *, struct se_portal_group *, void *, int)
 
int core_tpg_deregister (struct se_portal_group *)
 
u8 sas_get_fabric_proto_ident (struct se_portal_group *)
 
u32 sas_get_pr_transport_id (struct se_portal_group *, struct se_node_acl *, struct t10_pr_registration *, int *, unsigned char *)
 
u32 sas_get_pr_transport_id_len (struct se_portal_group *, struct se_node_acl *, struct t10_pr_registration *, int *)
 
charsas_parse_pr_out_transport_id (struct se_portal_group *, const char *, u32 *, char **)
 
u8 fc_get_fabric_proto_ident (struct se_portal_group *)
 
u32 fc_get_pr_transport_id (struct se_portal_group *, struct se_node_acl *, struct t10_pr_registration *, int *, unsigned char *)
 
u32 fc_get_pr_transport_id_len (struct se_portal_group *, struct se_node_acl *, struct t10_pr_registration *, int *)
 
charfc_parse_pr_out_transport_id (struct se_portal_group *, const char *, u32 *, char **)
 
u8 iscsi_get_fabric_proto_ident (struct se_portal_group *)
 
u32 iscsi_get_pr_transport_id (struct se_portal_group *, struct se_node_acl *, struct t10_pr_registration *, int *, unsigned char *)
 
u32 iscsi_get_pr_transport_id_len (struct se_portal_group *, struct se_node_acl *, struct t10_pr_registration *, int *)
 
chariscsi_parse_pr_out_transport_id (struct se_portal_group *, const char *, u32 *, char **)
 

Function Documentation

void __transport_register_session ( struct se_portal_group ,
struct se_node_acl ,
struct se_session ,
void  
)

Definition at line 239 of file target_core_transport.c.

int core_alua_check_nonop_delay ( struct se_cmd )

Definition at line 690 of file target_core_alua.c.

int core_tmr_alloc_req ( struct se_cmd ,
void ,
u8  ,
gfp_t   
)

Definition at line 43 of file target_core_tmr.c.

void core_tmr_release_req ( struct se_tmr_req )

Definition at line 68 of file target_core_tmr.c.

struct se_node_acl* core_tpg_add_initiator_node_acl ( struct se_portal_group ,
struct se_node_acl ,
const char ,
u32   
)
read

Definition at line 358 of file target_core_tpg.c.

struct se_node_acl* core_tpg_check_initiator_node_acl ( struct se_portal_group ,
unsigned char  
)
read

Definition at line 261 of file target_core_tpg.c.

void core_tpg_clear_object_luns ( struct se_portal_group )

Definition at line 333 of file target_core_tpg.c.

int core_tpg_del_initiator_node_acl ( struct se_portal_group ,
struct se_node_acl ,
int   
)

Definition at line 451 of file target_core_tpg.c.

int core_tpg_deregister ( struct se_portal_group )

Definition at line 718 of file target_core_tpg.c.

int core_tpg_register ( struct target_core_fabric_ops ,
struct se_wwn ,
struct se_portal_group ,
void ,
int   
)

Definition at line 654 of file target_core_tpg.c.

int core_tpg_set_initiator_node_queue_depth ( struct se_portal_group ,
unsigned char ,
u32  ,
int   
)

Definition at line 515 of file target_core_tpg.c.

u8 fc_get_fabric_proto_ident ( struct se_portal_group )

Definition at line 132 of file target_core_fabric_lib.c.

u32 fc_get_pr_transport_id ( struct se_portal_group ,
struct se_node_acl ,
struct t10_pr_registration ,
int ,
unsigned char  
)

Definition at line 152 of file target_core_fabric_lib.c.

u32 fc_get_pr_transport_id_len ( struct se_portal_group ,
struct se_node_acl ,
struct t10_pr_registration ,
int  
)

Definition at line 138 of file target_core_fabric_lib.c.

char* fc_parse_pr_out_transport_id ( struct se_portal_group ,
const char ,
u32 ,
char **   
)

Definition at line 191 of file target_core_fabric_lib.c.

u8 iscsi_get_fabric_proto_ident ( struct se_portal_group )

Definition at line 213 of file target_core_fabric_lib.c.

u32 iscsi_get_pr_transport_id ( struct se_portal_group ,
struct se_node_acl ,
struct t10_pr_registration ,
int ,
unsigned char  
)

Definition at line 223 of file target_core_fabric_lib.c.

u32 iscsi_get_pr_transport_id_len ( struct se_portal_group ,
struct se_node_acl ,
struct t10_pr_registration ,
int  
)

Definition at line 319 of file target_core_fabric_lib.c.

char* iscsi_parse_pr_out_transport_id ( struct se_portal_group ,
const char ,
u32 ,
char **   
)

Definition at line 365 of file target_core_fabric_lib.c.

u8 sas_get_fabric_proto_ident ( struct se_portal_group )

Definition at line 46 of file target_core_fabric_lib.c.

u32 sas_get_pr_transport_id ( struct se_portal_group ,
struct se_node_acl ,
struct t10_pr_registration ,
int ,
unsigned char  
)

Definition at line 56 of file target_core_fabric_lib.c.

u32 sas_get_pr_transport_id_len ( struct se_portal_group ,
struct se_node_acl ,
struct t10_pr_registration ,
int  
)

Definition at line 87 of file target_core_fabric_lib.c.

char* sas_parse_pr_out_transport_id ( struct se_portal_group ,
const char ,
u32 ,
char **   
)

Definition at line 108 of file target_core_fabric_lib.c.

void target_execute_cmd ( struct se_cmd cmd)

Definition at line 1815 of file target_core_transport.c.

void target_get_session ( struct se_session )

Definition at line 309 of file target_core_transport.c.

void target_put_nacl ( struct se_node_acl )

Definition at line 335 of file target_core_transport.c.

int target_put_sess_cmd ( struct se_session ,
struct se_cmd  
)

Definition at line 2502 of file target_core_transport.c.

void target_put_session ( struct se_session )

Definition at line 315 of file target_core_transport.c.

void target_sess_cmd_list_set_waiting ( struct se_session )

Definition at line 2513 of file target_core_transport.c.

int target_setup_cmd_from_cdb ( struct se_cmd ,
unsigned char  
)

Definition at line 1292 of file target_core_transport.c.

int target_submit_cmd ( struct se_cmd ,
struct se_session ,
unsigned char ,
unsigned char ,
u32  ,
u32  ,
int  ,
int  ,
int   
)

Definition at line 1603 of file target_core_transport.c.

int target_submit_cmd_map_sgls ( struct se_cmd ,
struct se_session ,
unsigned char ,
unsigned char ,
u32  ,
u32  ,
int  ,
int  ,
int  ,
struct scatterlist ,
u32  ,
struct scatterlist ,
u32   
)

Definition at line 1483 of file target_core_transport.c.

int target_submit_tmr ( struct se_cmd se_cmd,
struct se_session se_sess,
unsigned char sense,
u32  unpacked_lun,
void fabric_tmr_ptr,
unsigned char  tm_type,
gfp_t  gfp,
unsigned int  tag,
int  flags 
)

target_submit_tmr - lookup unpacked lun and submit uninitialized se_cmd for TMR CDBs

: command descriptor to submit : associated se_sess for endpoint : pointer to SCSI sense buffer : unpacked LUN to reference for struct se_lun : fabric context for TMR req : Type of TM request : gfp type for caller : referenced task tag for TMR_ABORT_TASK : submit cmd flags

Callable from all contexts.

Definition at line 1638 of file target_core_transport.c.

void target_wait_for_sess_cmds ( struct se_session ,
int   
)

Definition at line 2534 of file target_core_transport.c.

int transport_check_aborted_status ( struct se_cmd ,
int   
)

Definition at line 3045 of file target_core_transport.c.

void transport_deregister_session ( struct se_session )

Definition at line 375 of file target_core_transport.c.

void transport_deregister_session_configfs ( struct se_session )

Definition at line 340 of file target_core_transport.c.

void transport_free_session ( struct se_session )

Definition at line 369 of file target_core_transport.c.

void transport_generic_free_cmd ( struct se_cmd ,
int   
)

Definition at line 2419 of file target_core_transport.c.

int transport_generic_handle_tmr ( struct se_cmd )

Definition at line 3139 of file target_core_transport.c.

int transport_generic_map_mem_to_cmd ( struct se_cmd cmd,
struct scatterlist ,
u32  ,
struct scatterlist ,
u32   
)

Definition at line 2216 of file target_core_transport.c.

int transport_generic_new_cmd ( struct se_cmd )

Definition at line 2352 of file target_core_transport.c.

void transport_generic_request_failure ( struct se_cmd )

Definition at line 1712 of file target_core_transport.c.

int transport_handle_cdb_direct ( struct se_cmd )

Definition at line 1418 of file target_core_transport.c.

void transport_init_se_cmd ( struct se_cmd ,
struct target_core_fabric_ops ,
struct se_session ,
u32  ,
int  ,
int  ,
unsigned char  
)

Definition at line 1229 of file target_core_transport.c.

struct se_session* transport_init_session ( void  )
read

Definition at line 216 of file target_core_transport.c.

int transport_lookup_cmd_lun ( struct se_cmd ,
u32   
)

Definition at line 61 of file target_core_device.c.

int transport_lookup_tmr_lun ( struct se_cmd ,
u32   
)

Definition at line 170 of file target_core_device.c.

void transport_register_session ( struct se_portal_group ,
struct se_node_acl ,
struct se_session ,
void  
)

Definition at line 286 of file target_core_transport.c.

int transport_send_check_condition_and_sense ( struct se_cmd ,
u8  ,
int   
)

Definition at line 2853 of file target_core_transport.c.

bool transport_wait_for_tasks ( struct se_cmd cmd)

transport_wait_for_tasks - wait for completion to occur : command to wait

Called from frontend fabric context to wait for storage engine to pause and/or release frontend generated struct se_cmd.

Definition at line 2748 of file target_core_transport.c.