Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
tcm_loop.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/configfs.h>
#include <scsi/scsi.h>
#include <scsi/scsi_tcq.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_cmnd.h>
#include <target/target_core_base.h>
#include <target/target_core_fabric.h>
#include <target/target_core_fabric_configfs.h>
#include <target/target_core_configfs.h>
#include "tcm_loop.h"

Go to the source code of this file.

Macros

#define to_tcm_loop_hba(hba)   container_of(hba, struct tcm_loop_hba, dev)
 

Functions

 TF_TPG_BASE_ATTR (tcm_loop, nexus, S_IRUGO|S_IWUSR)
 
struct se_portal_grouptcm_loop_make_naa_tpg (struct se_wwn *wwn, struct config_group *group, const char *name)
 
void tcm_loop_drop_naa_tpg (struct se_portal_group *se_tpg)
 
struct se_wwntcm_loop_make_scsi_hba (struct target_fabric_configfs *tf, struct config_group *group, const char *name)
 
void tcm_loop_drop_scsi_hba (struct se_wwn *wwn)
 
 TF_WWN_ATTR_RO (tcm_loop, version)
 
 MODULE_DESCRIPTION ("TCM loopback virtual Linux/SCSI fabric module")
 
 MODULE_AUTHOR ("Nicholas A. Bellinger <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 module_init (tcm_loop_fabric_init)
 
 module_exit (tcm_loop_fabric_exit)
 

Variables

struct devicetcm_loop_primary
 

Macro Definition Documentation

#define to_tcm_loop_hba (   hba)    container_of(hba, struct tcm_loop_hba, dev)

Definition at line 42 of file tcm_loop.c.

Function Documentation

MODULE_AUTHOR ( "Nicholas A. Bellinger <[email protected]>"  )
MODULE_DESCRIPTION ( "TCM loopback virtual Linux/SCSI fabric module )
module_exit ( tcm_loop_fabric_exit  )
module_init ( tcm_loop_fabric_init  )
MODULE_LICENSE ( "GPL"  )
void tcm_loop_drop_naa_tpg ( struct se_portal_group se_tpg)

Definition at line 1118 of file tcm_loop.c.

void tcm_loop_drop_scsi_hba ( struct se_wwn wwn)

Definition at line 1220 of file tcm_loop.c.

struct se_portal_group* tcm_loop_make_naa_tpg ( struct se_wwn wwn,
struct config_group group,
const char name 
)
read

Definition at line 1073 of file tcm_loop.c.

struct se_wwn* tcm_loop_make_scsi_hba ( struct target_fabric_configfs tf,
struct config_group group,
const char name 
)
read

Definition at line 1150 of file tcm_loop.c.

TF_TPG_BASE_ATTR ( tcm_loop  ,
nexus  ,
S_IRUGO S_IWUSR 
)
TF_WWN_ATTR_RO ( tcm_loop  ,
version   
)

Variable Documentation

struct device* tcm_loop_primary

Definition at line 112 of file tcm_loop.c.