Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions
fc_npiv.c File Reference
#include <scsi/libfc.h>
#include <linux/export.h>

Go to the source code of this file.

Enumerations

enum  libfc_lport_mutex_class { LPORT_MUTEX_NORMAL = 0, LPORT_MUTEX_VN_PORT = 1 }
 

Functions

struct fc_lportlibfc_vport_create (struct fc_vport *vport, int privsize)
 
 EXPORT_SYMBOL (libfc_vport_create)
 
struct fc_lportfc_vport_id_lookup (struct fc_lport *n_port, u32 port_id)
 
 EXPORT_SYMBOL (fc_vport_id_lookup)
 
void fc_vport_setlink (struct fc_lport *vn_port)
 
 EXPORT_SYMBOL (fc_vport_setlink)
 
void fc_vports_linkchange (struct fc_lport *n_port)
 

Enumeration Type Documentation

Enumerator:
LPORT_MUTEX_NORMAL 
LPORT_MUTEX_VN_PORT 

Definition at line 91 of file fc_npiv.c.

Function Documentation

EXPORT_SYMBOL ( libfc_vport_create  )
EXPORT_SYMBOL ( fc_vport_id_lookup  )
EXPORT_SYMBOL ( fc_vport_setlink  )
struct fc_lport* fc_vport_id_lookup ( struct fc_lport n_port,
u32  port_id 
)
read

fc_vport_id_lookup() - find NPIV lport that matches a given fabric ID : Top level N_Port which may have multiple NPIV VN_Ports : Fabric ID to find a match for

Returns: matching lport pointer or NULL if there is no match

Definition at line 61 of file fc_npiv.c.

void fc_vport_setlink ( struct fc_lport vn_port)

fc_vport_setlink() - update link and status on a VN_Port : virtual port to update

Definition at line 129 of file fc_npiv.c.

void fc_vports_linkchange ( struct fc_lport n_port)

fc_vports_linkchange() - change the link state of all vports : Parent N_Port that has changed state

Locking: called with the n_port lp_mutex held

Definition at line 149 of file fc_npiv.c.

struct fc_lport* libfc_vport_create ( struct fc_vport vport,
int  privsize 
)
read

fc_vport_create() - Create a new NPIV vport instance : fc_vport structure from scsi_transport_fc : driver private data size to allocate along with the Scsi_Host

Definition at line 33 of file fc_npiv.c.