Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
scsi_transport_srp.h File Reference
#include <linux/transport_class.h>
#include <linux/types.h>
#include <linux/mutex.h>

Go to the source code of this file.

Data Structures

struct  srp_rport_identifiers
 
struct  srp_rport
 
struct  srp_function_template
 

Macros

#define SRP_RPORT_ROLE_INITIATOR   0
 
#define SRP_RPORT_ROLE_TARGET   1
 

Functions

struct scsi_transport_templatesrp_attach_transport (struct srp_function_template *)
 
void srp_release_transport (struct scsi_transport_template *)
 
struct srp_rportsrp_rport_add (struct Scsi_Host *, struct srp_rport_identifiers *)
 
void srp_rport_del (struct srp_rport *)
 
void srp_remove_host (struct Scsi_Host *)
 

Macro Definition Documentation

#define SRP_RPORT_ROLE_INITIATOR   0

Definition at line 8 of file scsi_transport_srp.h.

#define SRP_RPORT_ROLE_TARGET   1

Definition at line 9 of file scsi_transport_srp.h.

Function Documentation

struct scsi_transport_template* srp_attach_transport ( struct srp_function_template ft)
read

srp_attach_transport - instantiate SRP transport template : SRP transport class function template

Definition at line 305 of file scsi_transport_srp.c.

void srp_release_transport ( struct scsi_transport_template t)

srp_release_transport - release SRP transport template instance : transport template instance

Definition at line 344 of file scsi_transport_srp.c.

void srp_remove_host ( struct Scsi_Host shost)

srp_remove_host - tear down a Scsi_Host's SRP data structures : Scsi Host that is torn down

Removes all SRP remote ports for a given Scsi_Host. Must be called just before scsi_remove_host for SRP HBAs.

Definition at line 281 of file scsi_transport_srp.c.

struct srp_rport* srp_rport_add ( struct Scsi_Host shost,
struct srp_rport_identifiers ids 
)
read

srp_rport_add - add a SRP remote port to the device hierarchy : scsi host the remote port is connected to. : The port id for the remote port.

Publishes a port to the rest of the system.

Definition at line 195 of file scsi_transport_srp.c.

void srp_rport_del ( struct srp_rport rport)

srp_rport_del - remove a SRP remote port : SRP remote port to remove

Removes the specified SRP remote port.

Definition at line 251 of file scsi_transport_srp.c.