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

Go to the source code of this file.

Functions

struct se_dev_entrycore_get_se_deve_from_rtpi (struct se_node_acl *, u16)
 
int core_free_device_list_for_node (struct se_node_acl *, struct se_portal_group *)
 
void core_dec_lacl_count (struct se_node_acl *, struct se_cmd *)
 
void core_update_device_list_access (u32, u32, struct se_node_acl *)
 
int core_enable_device_list_for_node (struct se_lun *, struct se_lun_acl *, u32, u32, struct se_node_acl *, struct se_portal_group *)
 
int core_disable_device_list_for_node (struct se_lun *, struct se_lun_acl *, u32, u32, struct se_node_acl *, struct se_portal_group *)
 
void core_clear_lun_from_tpg (struct se_lun *, struct se_portal_group *)
 
int core_dev_export (struct se_device *, struct se_portal_group *, struct se_lun *)
 
void core_dev_unexport (struct se_device *, struct se_portal_group *, struct se_lun *)
 
int target_report_luns (struct se_cmd *)
 
void se_release_device_for_hba (struct se_device *)
 
void se_release_vpd_for_dev (struct se_device *)
 
int se_free_virtual_device (struct se_device *, struct se_hba *)
 
int se_dev_check_online (struct se_device *)
 
int se_dev_check_shutdown (struct se_device *)
 
void se_dev_set_default_attribs (struct se_device *, struct se_dev_limits *)
 
int se_dev_set_task_timeout (struct se_device *, u32)
 
int se_dev_set_max_unmap_lba_count (struct se_device *, u32)
 
int se_dev_set_max_unmap_block_desc_count (struct se_device *, u32)
 
int se_dev_set_unmap_granularity (struct se_device *, u32)
 
int se_dev_set_unmap_granularity_alignment (struct se_device *, u32)
 
int se_dev_set_emulate_dpo (struct se_device *, int)
 
int se_dev_set_emulate_fua_write (struct se_device *, int)
 
int se_dev_set_emulate_fua_read (struct se_device *, int)
 
int se_dev_set_emulate_write_cache (struct se_device *, int)
 
int se_dev_set_emulate_ua_intlck_ctrl (struct se_device *, int)
 
int se_dev_set_emulate_tas (struct se_device *, int)
 
int se_dev_set_emulate_tpu (struct se_device *, int)
 
int se_dev_set_emulate_tpws (struct se_device *, int)
 
int se_dev_set_enforce_pr_isids (struct se_device *, int)
 
int se_dev_set_is_nonrot (struct se_device *, int)
 
int se_dev_set_emulate_rest_reord (struct se_device *dev, int)
 
int se_dev_set_queue_depth (struct se_device *, u32)
 
int se_dev_set_max_sectors (struct se_device *, u32)
 
int se_dev_set_fabric_max_sectors (struct se_device *, u32)
 
int se_dev_set_optimal_sectors (struct se_device *, u32)
 
int se_dev_set_block_size (struct se_device *, u32)
 
struct se_luncore_dev_add_lun (struct se_portal_group *, struct se_device *, u32)
 
int core_dev_del_lun (struct se_portal_group *, u32)
 
struct se_luncore_get_lun_from_tpg (struct se_portal_group *, u32)
 
struct se_lun_aclcore_dev_init_initiator_node_lun_acl (struct se_portal_group *, u32, char *, int *)
 
int core_dev_add_initiator_node_lun_acl (struct se_portal_group *, struct se_lun_acl *, u32, u32)
 
int core_dev_del_initiator_node_lun_acl (struct se_portal_group *, struct se_lun *, struct se_lun_acl *)
 
void core_dev_free_initiator_node_lun_acl (struct se_portal_group *, struct se_lun_acl *lacl)
 
int core_dev_setup_virtual_lun0 (void)
 
void core_dev_release_virtual_lun0 (void)
 
struct se_hbacore_alloc_hba (const char *, u32, u32)
 
int core_delete_hba (struct se_hba *)
 
void core_tmr_abort_task (struct se_device *, struct se_tmr_req *, struct se_session *)
 
int core_tmr_lun_reset (struct se_device *, struct se_tmr_req *, struct list_head *, struct se_cmd *)
 
struct se_node_acl__core_tpg_get_initiator_node_acl (struct se_portal_group *tpg, const char *)
 
struct se_node_aclcore_tpg_get_initiator_node_acl (struct se_portal_group *tpg, unsigned char *)
 
void core_tpg_add_node_to_devs (struct se_node_acl *, struct se_portal_group *)
 
void core_tpg_wait_for_nacl_pr_ref (struct se_node_acl *)
 
struct se_luncore_tpg_pre_addlun (struct se_portal_group *, u32)
 
int core_tpg_post_addlun (struct se_portal_group *, struct se_lun *, u32, void *)
 
struct se_luncore_tpg_pre_dellun (struct se_portal_group *, u32 unpacked_lun)
 
int core_tpg_post_dellun (struct se_portal_group *, struct se_lun *)
 
int init_se_kmem_caches (void)
 
void release_se_kmem_caches (void)
 
u32 scsi_get_new_index (scsi_index_t)
 
void transport_subsystem_check_init (void)
 
void transport_cmd_finish_abort (struct se_cmd *, int)
 
unsigned chartransport_dump_cmd_direction (struct se_cmd *)
 
void transport_dump_dev_state (struct se_device *, char *, int *)
 
void transport_dump_dev_info (struct se_device *, struct se_lun *, unsigned long long, char *, int *)
 
void transport_dump_vpd_proto_id (struct t10_vpd *, unsigned char *, int)
 
int transport_dump_vpd_assoc (struct t10_vpd *, unsigned char *, int)
 
int transport_dump_vpd_ident_type (struct t10_vpd *, unsigned char *, int)
 
int transport_dump_vpd_ident (struct t10_vpd *, unsigned char *, int)
 
bool target_stop_cmd (struct se_cmd *cmd, unsigned long *flags)
 
int transport_clear_lun_from_sessions (struct se_lun *)
 
void transport_send_task_abort (struct se_cmd *)
 
int target_cmd_size_check (struct se_cmd *cmd, unsigned int size)
 
void target_stat_setup_dev_default_groups (struct se_subsystem_dev *)
 
void target_stat_setup_port_default_groups (struct se_lun *)
 
void target_stat_setup_mappedlun_default_groups (struct se_lun_acl *)
 

Variables

struct t10_alua_lu_gpdefault_lu_gp
 
struct se_deviceg_lun0_dev
 
struct kmem_cachese_tmr_req_cache
 

Function Documentation

struct se_node_acl* __core_tpg_get_initiator_node_acl ( struct se_portal_group tpg,
const char  
)
read

Definition at line 92 of file target_core_tpg.c.

struct se_hba* core_alloc_hba ( const char ,
u32  ,
u32   
)
read

Definition at line 105 of file target_core_hba.c.

void core_clear_lun_from_tpg ( struct se_lun ,
struct se_portal_group  
)

Definition at line 480 of file target_core_device.c.

void core_dec_lacl_count ( struct se_node_acl ,
struct se_cmd  
)

Definition at line 315 of file target_core_device.c.

int core_delete_hba ( struct se_hba )

Definition at line 153 of file target_core_hba.c.

int core_dev_add_initiator_node_lun_acl ( struct se_portal_group ,
struct se_lun_acl ,
u32  ,
u32   
)

Definition at line 1472 of file target_core_device.c.

struct se_lun* core_dev_add_lun ( struct se_portal_group ,
struct se_device ,
u32   
)
read

Definition at line 1302 of file target_core_device.c.

int core_dev_del_initiator_node_lun_acl ( struct se_portal_group ,
struct se_lun ,
struct se_lun_acl  
)

Definition at line 1527 of file target_core_device.c.

int core_dev_del_lun ( struct se_portal_group ,
u32   
)

Definition at line 1355 of file target_core_device.c.

int core_dev_export ( struct se_device ,
struct se_portal_group ,
struct se_lun  
)

Definition at line 623 of file target_core_device.c.

void core_dev_free_initiator_node_lun_acl ( struct se_portal_group ,
struct se_lun_acl lacl 
)

Definition at line 1558 of file target_core_device.c.

struct se_lun_acl* core_dev_init_initiator_node_lun_acl ( struct se_portal_group ,
u32  ,
char ,
int  
)
read

Definition at line 1437 of file target_core_device.c.

void core_dev_release_virtual_lun0 ( void  )

Definition at line 1642 of file target_core_device.c.

int core_dev_setup_virtual_lun0 ( void  )

Definition at line 1571 of file target_core_device.c.

void core_dev_unexport ( struct se_device ,
struct se_portal_group ,
struct se_lun  
)

Definition at line 642 of file target_core_device.c.

int core_disable_device_list_for_node ( struct se_lun ,
struct se_lun_acl ,
u32  ,
u32  ,
struct se_node_acl ,
struct se_portal_group  
)

Definition at line 426 of file target_core_device.c.

int core_enable_device_list_for_node ( struct se_lun ,
struct se_lun_acl ,
u32  ,
u32  ,
struct se_node_acl ,
struct se_portal_group  
)

Definition at line 349 of file target_core_device.c.

int core_free_device_list_for_node ( struct se_node_acl ,
struct se_portal_group  
)

Definition at line 276 of file target_core_device.c.

struct se_lun* core_get_lun_from_tpg ( struct se_portal_group ,
u32   
)
read

Definition at line 1375 of file target_core_device.c.

struct se_dev_entry* core_get_se_deve_from_rtpi ( struct se_node_acl ,
u16   
)
read

Definition at line 231 of file target_core_device.c.

void core_tmr_abort_task ( struct se_device ,
struct se_tmr_req ,
struct se_session  
)

Definition at line 121 of file target_core_tmr.c.

int core_tmr_lun_reset ( struct se_device ,
struct se_tmr_req ,
struct list_head ,
struct se_cmd  
)

Definition at line 354 of file target_core_tmr.c.

void core_tpg_add_node_to_devs ( struct se_node_acl ,
struct se_portal_group  
)

Definition at line 133 of file target_core_tpg.c.

struct se_node_acl* core_tpg_get_initiator_node_acl ( struct se_portal_group tpg,
unsigned char  
)
read

Definition at line 110 of file target_core_tpg.c.

int core_tpg_post_addlun ( struct se_portal_group ,
struct se_lun ,
u32  ,
void  
)

Definition at line 794 of file target_core_tpg.c.

int core_tpg_post_dellun ( struct se_portal_group ,
struct se_lun  
)

Definition at line 852 of file target_core_tpg.c.

struct se_lun* core_tpg_pre_addlun ( struct se_portal_group ,
u32   
)
read

Definition at line 764 of file target_core_tpg.c.

struct se_lun* core_tpg_pre_dellun ( struct se_portal_group ,
u32  unpacked_lun 
)
read

Definition at line 822 of file target_core_tpg.c.

void core_tpg_wait_for_nacl_pr_ref ( struct se_node_acl )

Definition at line 327 of file target_core_tpg.c.

void core_update_device_list_access ( u32  ,
u32  ,
struct se_node_acl  
)

Definition at line 326 of file target_core_device.c.

int init_se_kmem_caches ( void  )

Definition at line 76 of file target_core_transport.c.

void release_se_kmem_caches ( void  )

Definition at line 161 of file target_core_transport.c.

u32 scsi_get_new_index ( scsi_index_t  )

Definition at line 180 of file target_core_transport.c.

int se_dev_check_online ( struct se_device )

Definition at line 827 of file target_core_device.c.

int se_dev_check_shutdown ( struct se_device )

Definition at line 840 of file target_core_device.c.

int se_dev_set_block_size ( struct se_device ,
u32   
)

Definition at line 1270 of file target_core_device.c.

void se_dev_set_default_attribs ( struct se_device ,
struct se_dev_limits  
)

Definition at line 869 of file target_core_device.c.

int se_dev_set_emulate_dpo ( struct se_device ,
int   
)

Definition at line 969 of file target_core_device.c.

int se_dev_set_emulate_fua_read ( struct se_device ,
int   
)

Definition at line 1002 of file target_core_device.c.

int se_dev_set_emulate_fua_write ( struct se_device ,
int   
)

Definition at line 984 of file target_core_device.c.

int se_dev_set_emulate_rest_reord ( struct se_device dev,
int   
)

Definition at line 1141 of file target_core_device.c.

int se_dev_set_emulate_tas ( struct se_device ,
int   
)

Definition at line 1055 of file target_core_device.c.

int se_dev_set_emulate_tpu ( struct se_device ,
int   
)

Definition at line 1075 of file target_core_device.c.

int se_dev_set_emulate_tpws ( struct se_device ,
int   
)

Definition at line 1096 of file target_core_device.c.

int se_dev_set_emulate_ua_intlck_ctrl ( struct se_device ,
int   
)

Definition at line 1034 of file target_core_device.c.

int se_dev_set_emulate_write_cache ( struct se_device ,
int   
)

Definition at line 1017 of file target_core_device.c.

int se_dev_set_enforce_pr_isids ( struct se_device ,
int   
)

Definition at line 1117 of file target_core_device.c.

int se_dev_set_fabric_max_sectors ( struct se_device ,
u32   
)

Definition at line 1196 of file target_core_device.c.

int se_dev_set_is_nonrot ( struct se_device ,
int   
)

Definition at line 1129 of file target_core_device.c.

int se_dev_set_max_sectors ( struct se_device ,
u32   
)
int se_dev_set_max_unmap_block_desc_count ( struct se_device ,
u32   
)

Definition at line 938 of file target_core_device.c.

int se_dev_set_max_unmap_lba_count ( struct se_device ,
u32   
)

Definition at line 928 of file target_core_device.c.

int se_dev_set_optimal_sectors ( struct se_device ,
u32   
)

Definition at line 1244 of file target_core_device.c.

int se_dev_set_queue_depth ( struct se_device ,
u32   
)

Definition at line 1156 of file target_core_device.c.

int se_dev_set_task_timeout ( struct se_device ,
u32   
)
int se_dev_set_unmap_granularity ( struct se_device ,
u32   
)

Definition at line 949 of file target_core_device.c.

int se_dev_set_unmap_granularity_alignment ( struct se_device ,
u32   
)

Definition at line 959 of file target_core_device.c.

int se_free_virtual_device ( struct se_device ,
struct se_hba  
)

Definition at line 777 of file target_core_device.c.

void se_release_device_for_hba ( struct se_device )

Definition at line 732 of file target_core_device.c.

void se_release_vpd_for_dev ( struct se_device )

Definition at line 760 of file target_core_device.c.

int target_cmd_size_check ( struct se_cmd cmd,
unsigned int  size 
)

Definition at line 1173 of file target_core_transport.c.

int target_report_luns ( struct se_cmd )

Definition at line 665 of file target_core_device.c.

void target_stat_setup_dev_default_groups ( struct se_subsystem_dev )

Definition at line 665 of file target_core_stat.c.

void target_stat_setup_mappedlun_default_groups ( struct se_lun_acl )

Definition at line 1781 of file target_core_stat.c.

void target_stat_setup_port_default_groups ( struct se_lun )

Definition at line 1201 of file target_core_stat.c.

bool target_stop_cmd ( struct se_cmd cmd,
unsigned long flags 
)

Definition at line 1688 of file target_core_transport.c.

int transport_clear_lun_from_sessions ( struct se_lun )

Definition at line 2726 of file target_core_transport.c.

void transport_cmd_finish_abort ( struct se_cmd ,
int   
)

Definition at line 546 of file target_core_transport.c.

unsigned char* transport_dump_cmd_direction ( struct se_cmd )

Definition at line 691 of file target_core_transport.c.

void transport_dump_dev_info ( struct se_device ,
struct se_lun ,
unsigned long  long,
char ,
int  
)
void transport_dump_dev_state ( struct se_device ,
char ,
int  
)

Definition at line 709 of file target_core_transport.c.

int transport_dump_vpd_assoc ( struct t10_vpd ,
unsigned char ,
int   
)

Definition at line 810 of file target_core_transport.c.

int transport_dump_vpd_ident ( struct t10_vpd ,
unsigned char ,
int   
)

Definition at line 919 of file target_core_transport.c.

int transport_dump_vpd_ident_type ( struct t10_vpd ,
unsigned char ,
int   
)

Definition at line 858 of file target_core_transport.c.

void transport_dump_vpd_proto_id ( struct t10_vpd ,
unsigned char ,
int   
)

Definition at line 741 of file target_core_transport.c.

void transport_send_task_abort ( struct se_cmd )

Definition at line 3067 of file target_core_transport.c.

void transport_subsystem_check_init ( void  )

Definition at line 193 of file target_core_transport.c.

Variable Documentation

struct t10_alua_lu_gp* default_lu_gp

Definition at line 55 of file target_core_alua.c.

struct se_device* g_lun0_dev

Definition at line 59 of file target_core_device.c.

struct kmem_cache* se_tmr_req_cache