Specifications

gld_stats Generic LAN Driver statistics data structure
#include <sys/gld.h>
Solaris architecture specic (Solaris DDI).
The Generic LAN Driver (GLD) statistics (gld_stats) structure is used to
communicate statistics and state information from a GLD-based driver to GLD when
returning from a drivers gldm_get_stats() routine as discussed in gld(9E) and
gld(7D). The members of this structure, lled in by the GLD-based driver, are used
when GLD reports the statistics. In the tables below, the name of the statistics variable
reported by GLD is noted in the comments. See gld(7D) for a more detailed
description of the meaning of each statistic.
Drivers can make no assumptions about the length of this structure, which might be
different in different releases of Solaris and/or GLD. Structure members private to
GLD, not documented here, should not be set or read by the device specic driver.
The following structure members are dened for all media types:
uint64_t glds_speed; /* ifspeed */
uint32_t glds_media; /* media */
uint32_t glds_intr; /* intr */
uint32_t glds_norcvbuf; /* norcvbuf */
uint32_t glds_errrcv; /* ierrors */
uint32_t glds_errxmt; /* oerrors */
uint32_t glds_missed; /* missed */
uint32_t glds_underflow; /* uflo */
uint32_t glds_overflow; /* oflo */
The following structure members are dened for media type DL_ETHER:
uint32_t glds_frame; /* align_errors */
uint32_t glds_crc; /* fcs_errors */
uint32_t glds_duplex; /* duplex */
uint32_t glds_nocarrier; /* carrier_errors */
uint32_t glds_collisions; /* collisions */
uint32_t glds_excoll; /* ex_collisions */
uint32_t glds_xmtlatecoll; /* tx_late_collisions */
uint32_t glds_defer; /* defer_xmts */
uint32_t glds_dot3_first_coll; /* first_collisions */
uint32_t glds_dot3_multi_coll; /* multi_collisions */
uint32_t glds_dot3_sqe_error; /* sqe_errors */
uint32_t glds_dot3_mac_xmt_error; /* macxmt_errors */
uint32_t glds_dot3_mac_rcv_error; /* macrcv_errors */
uint32_t glds_dot3_frame_too_long; /* toolong_errors */
uint32_t glds_short; /* runt_errors */
The following structure members are dened for media type DL_TPR:
uint32_t glds_dot5_line_error /* line_errors */
uint32_t glds_dot5_burst_error /* burst_errors */
uint32_t glds_dot5_signal_loss /* signal_losses */
uint32_t glds_dot5_ace_error /* ace_errors */
uint32_t glds_dot5_internal_error /* internal_errors */
gld_stats(9S)
NAME
SYNOPSIS
INTERFACE
LEVEL
DESCRIPTION
STRUCTURE
MEMBERS
Data Structures for Drivers 57