iPXE
Data Fields
fc_peer Struct Reference

A Fibre Channel peer. More...

#include <fc.h>

Data Fields

struct refcnt refcnt
 Reference count. More...
 
struct list_head list
 List of all peers. More...
 
struct fc_name port_wwn
 Port name. More...
 
struct fc_link_state link
 Link state monitor. More...
 
struct interface plogi
 PLOGI interface. More...
 
struct fc_portport
 Fibre Channel port, if known. More...
 
struct fc_port_id port_id
 Peer port ID, if known. More...
 
struct list_head ulps
 List of upper-layer protocols. More...
 
unsigned int usage
 Active usage count. More...
 

Detailed Description

A Fibre Channel peer.

Definition at line 340 of file fc.h.

Field Documentation

◆ refcnt

struct refcnt fc_peer::refcnt

Reference count.

Definition at line 342 of file fc.h.

Referenced by fc_peer_create(), fc_peer_get(), and fc_peer_put().

◆ list

struct list_head fc_peer::list

List of all peers.

Definition at line 344 of file fc.h.

Referenced by fc_peer_close(), fc_peer_create(), fc_peer_get_port_id(), fc_peer_get_wwn(), fc_port_login(), fc_port_logout(), and fcstat_exec().

◆ port_wwn

struct fc_name fc_peer::port_wwn

◆ link

struct fc_link_state fc_peer::link

◆ plogi

struct interface fc_peer::plogi

PLOGI interface.

Definition at line 352 of file fc.h.

Referenced by fc_els_plogi_rx(), fc_peer_close(), fc_peer_create(), fc_peer_plogi(), and fc_peer_plogi_done().

◆ port

struct fc_port* fc_peer::port

◆ port_id

struct fc_port_id fc_peer::port_id

Peer port ID, if known.

Definition at line 356 of file fc.h.

Referenced by fc_peer_get_port_id(), fc_peer_login(), fc_port_login(), fc_ulp_examine(), fcpdev_scsi_command(), and fcpeerstat().

◆ ulps

struct list_head fc_peer::ulps

List of upper-layer protocols.

Definition at line 359 of file fc.h.

Referenced by fc_peer_close(), fc_peer_create(), fc_peer_login(), fc_peer_logout(), fc_ulp_create(), fc_ulp_get_type(), and fcpeerstat().

◆ usage

unsigned int fc_peer::usage

Active usage count.

A peer (and attached ULPs) may be created in response to unsolicited login requests received via the fabric. We track our own active usage count independently of the existence of the peer, so that if the peer becomes logged out (e.g. due to a link failure) then we know whether or not we should attempt to relogin.

Definition at line 369 of file fc.h.

Referenced by fc_peer_decrement(), fc_peer_increment(), and fc_peer_logout().


The documentation for this struct was generated from the following file: