Data Fields
fc_peer Struct Reference

A Fibre Channel peer. More...

#include <fc.h>

Data Fields

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

Detailed Description

A Fibre Channel peer.

Definition at line 340 of file fc.h.

Field Documentation

Reference count.

Definition at line 342 of file fc.h.

Referenced by fc_peer_create().

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().

PLOGI interface.

Definition at line 352 of file fc.h.

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

Peer port ID, if known.

Definition at line 356 of file fc.h.

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

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().

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: