Linux Kernel
3.7.1
|
#include <linux/net.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/slab.h>
#include <linux/blkdev.h>
#include <linux/spinlock.h>
#include <linux/kthread.h>
#include <linux/in.h>
#include <linux/cdrom.h>
#include <linux/module.h>
#include <linux/ratelimit.h>
#include <asm/unaligned.h>
#include <net/sock.h>
#include <net/tcp.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_tcq.h>
#include <target/target_core_base.h>
#include <target/target_core_backend.h>
#include <target/target_core_fabric.h>
#include <target/target_core_configfs.h>
#include "target_core_internal.h"
#include "target_core_alua.h"
#include "target_core_pr.h"
#include "target_core_ua.h"
Go to the source code of this file.
void __transport_register_session | ( | struct se_portal_group * | se_tpg, |
struct se_node_acl * | se_nacl, | ||
struct se_session * | se_sess, | ||
void * | fabric_sess_ptr | ||
) |
Definition at line 239 of file target_core_transport.c.
EXPORT_SYMBOL | ( | transport_init_session | ) |
EXPORT_SYMBOL | ( | __transport_register_session | ) |
EXPORT_SYMBOL | ( | transport_register_session | ) |
EXPORT_SYMBOL | ( | target_get_session | ) |
EXPORT_SYMBOL | ( | target_put_session | ) |
EXPORT_SYMBOL | ( | transport_deregister_session_configfs | ) |
EXPORT_SYMBOL | ( | transport_free_session | ) |
EXPORT_SYMBOL | ( | transport_deregister_session | ) |
EXPORT_SYMBOL | ( | target_complete_cmd | ) |
EXPORT_SYMBOL | ( | transport_set_vpd_proto_id | ) |
EXPORT_SYMBOL | ( | transport_set_vpd_assoc | ) |
EXPORT_SYMBOL | ( | transport_set_vpd_ident_type | ) |
EXPORT_SYMBOL | ( | transport_set_vpd_ident | ) |
EXPORT_SYMBOL | ( | transport_add_device_to_core_hba | ) |
EXPORT_SYMBOL | ( | transport_init_se_cmd | ) |
EXPORT_SYMBOL | ( | target_setup_cmd_from_cdb | ) |
EXPORT_SYMBOL | ( | transport_handle_cdb_direct | ) |
EXPORT_SYMBOL | ( | target_submit_cmd_map_sgls | ) |
EXPORT_SYMBOL | ( | target_submit_cmd | ) |
EXPORT_SYMBOL | ( | target_submit_tmr | ) |
EXPORT_SYMBOL | ( | transport_generic_request_failure | ) |
EXPORT_SYMBOL | ( | target_execute_cmd | ) |
EXPORT_SYMBOL | ( | transport_generic_map_mem_to_cmd | ) |
EXPORT_SYMBOL | ( | transport_kmap_data_sg | ) |
EXPORT_SYMBOL | ( | transport_kunmap_data_sg | ) |
EXPORT_SYMBOL | ( | transport_generic_new_cmd | ) |
EXPORT_SYMBOL | ( | transport_generic_free_cmd | ) |
EXPORT_SYMBOL | ( | target_put_sess_cmd | ) |
EXPORT_SYMBOL | ( | target_sess_cmd_list_set_waiting | ) |
EXPORT_SYMBOL | ( | target_wait_for_sess_cmds | ) |
EXPORT_SYMBOL | ( | transport_wait_for_tasks | ) |
EXPORT_SYMBOL | ( | transport_send_check_condition_and_sense | ) |
EXPORT_SYMBOL | ( | transport_check_aborted_status | ) |
EXPORT_SYMBOL | ( | transport_generic_handle_tmr | ) |
Definition at line 76 of file target_core_transport.c.
Definition at line 161 of file target_core_transport.c.
u32 scsi_get_new_index | ( | scsi_index_t | type | ) |
Definition at line 180 of file target_core_transport.c.
Definition at line 1173 of file target_core_transport.c.
Definition at line 587 of file target_core_transport.c.
Definition at line 1815 of file target_core_transport.c.
void target_get_session | ( | struct se_session * | se_sess | ) |
Definition at line 309 of file target_core_transport.c.
void target_put_nacl | ( | struct se_node_acl * | nacl | ) |
Definition at line 335 of file target_core_transport.c.
int target_put_sess_cmd | ( | struct se_session * | se_sess, |
struct se_cmd * | se_cmd | ||
) |
Definition at line 2502 of file target_core_transport.c.
void target_put_session | ( | struct se_session * | se_sess | ) |
Definition at line 315 of file target_core_transport.c.
Definition at line 300 of file target_core_transport.c.
void target_sess_cmd_list_set_waiting | ( | struct se_session * | se_sess | ) |
Definition at line 2513 of file target_core_transport.c.
Definition at line 1292 of file target_core_transport.c.
Definition at line 1688 of file target_core_transport.c.
int target_submit_cmd | ( | struct se_cmd * | se_cmd, |
struct se_session * | se_sess, | ||
unsigned char * | cdb, | ||
unsigned char * | sense, | ||
u32 | unpacked_lun, | ||
u32 | data_length, | ||
int | task_attr, | ||
int | data_dir, | ||
int | flags | ||
) |
Definition at line 1603 of file target_core_transport.c.
int target_submit_cmd_map_sgls | ( | struct se_cmd * | se_cmd, |
struct se_session * | se_sess, | ||
unsigned char * | cdb, | ||
unsigned char * | sense, | ||
u32 | unpacked_lun, | ||
u32 | data_length, | ||
int | task_attr, | ||
int | data_dir, | ||
int | flags, | ||
struct scatterlist * | sgl, | ||
u32 | sgl_count, | ||
struct scatterlist * | sgl_bidi, | ||
u32 | sgl_bidi_count | ||
) |
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 * | se_sess, |
int | wait_for_tasks | ||
) |
Definition at line 2534 of file target_core_transport.c.
|
read |
Definition at line 1052 of file target_core_transport.c.
Definition at line 3045 of file target_core_transport.c.
Definition at line 2726 of file target_core_transport.c.
Definition at line 546 of file target_core_transport.c.
void transport_deregister_session | ( | struct se_session * | se_sess | ) |
Definition at line 375 of file target_core_transport.c.
void transport_deregister_session_configfs | ( | struct se_session * | se_sess | ) |
Definition at line 340 of file target_core_transport.c.
Definition at line 691 of file target_core_transport.c.
Definition at line 709 of file target_core_transport.c.
Definition at line 810 of file target_core_transport.c.
Definition at line 919 of file target_core_transport.c.
Definition at line 858 of file target_core_transport.c.
Definition at line 741 of file target_core_transport.c.
void transport_free_session | ( | struct se_session * | se_sess | ) |
Definition at line 369 of file target_core_transport.c.
Definition at line 2419 of file target_core_transport.c.
Definition at line 3139 of file target_core_transport.c.
int transport_generic_map_mem_to_cmd | ( | struct se_cmd * | cmd, |
struct scatterlist * | sgl, | ||
u32 | sgl_count, | ||
struct scatterlist * | sgl_bidi, | ||
u32 | sgl_bidi_count | ||
) |
Definition at line 2216 of file target_core_transport.c.
Definition at line 2352 of file target_core_transport.c.
Definition at line 1712 of file target_core_transport.c.
Definition at line 1418 of file target_core_transport.c.
void transport_init_se_cmd | ( | struct se_cmd * | cmd, |
struct target_core_fabric_ops * | tfo, | ||
struct se_session * | se_sess, | ||
u32 | data_length, | ||
int | data_direction, | ||
int | task_attr, | ||
unsigned char * | sense_buffer | ||
) |
Definition at line 1229 of file target_core_transport.c.
|
read |
Definition at line 216 of file target_core_transport.c.
Definition at line 2251 of file target_core_transport.c.
Definition at line 2292 of file target_core_transport.c.
void transport_register_session | ( | struct se_portal_group * | se_tpg, |
struct se_node_acl * | se_nacl, | ||
struct se_session * | se_sess, | ||
void * | fabric_sess_ptr | ||
) |
Definition at line 286 of file target_core_transport.c.
Definition at line 2853 of file target_core_transport.c.
Definition at line 3067 of file target_core_transport.c.
Definition at line 846 of file target_core_transport.c.
Definition at line 958 of file target_core_transport.c.
Definition at line 907 of file target_core_transport.c.
Definition at line 795 of file target_core_transport.c.
Definition at line 193 of file target_core_transport.c.
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.
struct kmem_cache* se_ua_cache |
Definition at line 60 of file target_core_transport.c.
struct kmem_cache* t10_alua_lu_gp_cache |
Definition at line 62 of file target_core_transport.c.
struct kmem_cache* t10_alua_lu_gp_mem_cache |
Definition at line 63 of file target_core_transport.c.
struct kmem_cache* t10_alua_tg_pt_gp_cache |
Definition at line 64 of file target_core_transport.c.
struct kmem_cache* t10_alua_tg_pt_gp_mem_cache |
Definition at line 65 of file target_core_transport.c.
struct kmem_cache* t10_pr_reg_cache |
Definition at line 61 of file target_core_transport.c.