Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
ib_srpt.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/ctype.h>
#include <linux/kthread.h>
#include <linux/string.h>
#include <linux/delay.h>
#include <linux/atomic.h>
#include <scsi/scsi_tcq.h>
#include <target/configfs_macros.h>
#include <target/target_core_base.h>
#include <target/target_core_fabric_configfs.h>
#include <target/target_core_fabric.h>
#include <target/target_core_configfs.h>
#include "ib_srpt.h"

Go to the source code of this file.

Macros

#define DRV_NAME   "ib_srpt"
 
#define DRV_VERSION   "2.0.0"
 
#define DRV_RELDATE   "2011-02-14"
 
#define SRPT_ID_STRING   "Linux SRP target"
 
#define pr_fmt(fmt)   DRV_NAME " " fmt
 
#define NO_SUCH_LUN   ((uint64_t)-1LL)
 

Enumerations

enum  scsi_lun_addr_method { SCSI_LUN_ADDR_METHOD_PERIPHERAL = 0, SCSI_LUN_ADDR_METHOD_FLAT = 1, SCSI_LUN_ADDR_METHOD_LUN = 2, SCSI_LUN_ADDR_METHOD_EXTENDED_LUN = 3 }
 

Functions

 MODULE_AUTHOR ("Vu Pham and Bart Van Assche")
 
 MODULE_DESCRIPTION ("InfiniBand SCSI RDMA Protocol target ""v"DRV_VERSION" ("DRV_RELDATE")")
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 module_param (srp_max_req_size, int, 0444)
 
 MODULE_PARM_DESC (srp_max_req_size,"Maximum size of SRP request messages in bytes.")
 
 module_param (srpt_srq_size, int, 0444)
 
 MODULE_PARM_DESC (srpt_srq_size,"Shared receive queue (SRQ) size.")
 
 module_param_call (srpt_service_guid, NULL, srpt_get_u64_x,&srpt_service_guid, 0444)
 
 MODULE_PARM_DESC (srpt_service_guid,"Using this value for ioc_guid, id_ext, and cm_listen_id"" instead of using the node_guid of the first HCA.")
 

: ASCII representation of a 128-bit initiator port ID.

srpt_parse_i_port_id() - Parse an initiator port ID.

: Binary 128-bit port ID.

 TF_TPG_ATTRIB_ATTR (srpt, srp_max_rdma_size, S_IRUGO|S_IWUSR)
 
 TF_TPG_ATTRIB_ATTR (srpt, srp_max_rsp_size, S_IRUGO|S_IWUSR)
 
 TF_TPG_ATTRIB_ATTR (srpt, srp_sq_size, S_IRUGO|S_IWUSR)
 
 TF_TPG_BASE_ATTR (srpt, enable, S_IRUGO|S_IWUSR)
 
 TF_WWN_ATTR_RO (srpt, version)
 
 module_init (srpt_init_module)
 
 module_exit (srpt_cleanup_module)
 

Macro Definition Documentation

#define DRV_NAME   "ib_srpt"

Definition at line 53 of file ib_srpt.c.

#define DRV_RELDATE   "2011-02-14"

Definition at line 55 of file ib_srpt.c.

#define DRV_VERSION   "2.0.0"

Definition at line 54 of file ib_srpt.c.

#define NO_SUCH_LUN   ((uint64_t)-1LL)

Definition at line 1638 of file ib_srpt.c.

#define pr_fmt (   fmt)    DRV_NAME " " fmt

Definition at line 60 of file ib_srpt.c.

#define SRPT_ID_STRING   "Linux SRP target"

Definition at line 57 of file ib_srpt.c.

Enumeration Type Documentation

Enumerator:
SCSI_LUN_ADDR_METHOD_PERIPHERAL 
SCSI_LUN_ADDR_METHOD_FLAT 
SCSI_LUN_ADDR_METHOD_LUN 
SCSI_LUN_ADDR_METHOD_EXTENDED_LUN 

Definition at line 1644 of file ib_srpt.c.

Function Documentation

MODULE_AUTHOR ( "Vu Pham and Bart Van Assche"  )
MODULE_DESCRIPTION ( "InfiniBand SCSI RDMA Protocol target ""v"DRV_VERSION" ("DRV_RELDATE")"  )
module_exit ( srpt_cleanup_module  )
module_init ( srpt_init_module  )
MODULE_LICENSE ( "Dual BSD/GPL"  )
module_param ( srp_max_req_size  ,
int  ,
0444   
)
module_param ( srpt_srq_size  ,
int  ,
0444   
)
module_param_call ( srpt_service_guid  ,
NULL  ,
srpt_get_u64_x  ,
srpt_service_guid,
0444   
)
MODULE_PARM_DESC ( srp_max_req_size  ,
"Maximum size of SRP request messages in bytes."   
)
MODULE_PARM_DESC ( srpt_srq_size  ,
"Shared receive queue (SRQ) size."   
)
MODULE_PARM_DESC ( srpt_service_guid  ,
"Using this value for  ioc_guid,
id_ext  ,
and cm_listen_id""instead of using the node_guid of the first HCA."   
)
TF_TPG_ATTRIB_ATTR ( srpt  ,
srp_max_rdma_size  ,
S_IRUGO S_IWUSR 
)
TF_TPG_ATTRIB_ATTR ( srpt  ,
srp_max_rsp_size  ,
S_IRUGO S_IWUSR 
)
TF_TPG_ATTRIB_ATTR ( srpt  ,
srp_sq_size  ,
S_IRUGO S_IWUSR 
)
TF_TPG_BASE_ATTR ( srpt  ,
enable  ,
S_IRUGO S_IWUSR 
)
TF_WWN_ATTR_RO ( srpt  ,
version   
)