Class: Nl::Linux::Psp::AttributeSets::Stats

Inherits:
AttributeSet show all
Defined in:
nl-linux/generated/nl/linux/psp.rb

Defined Under Namespace

Classes: Attribute, DevId, KeyRotations, RxAuthFail, RxBad, RxBytes, RxError, RxPackets, StaleEvents, TxBytes, TxError, TxPackets

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



588
# File 'nl-linux/generated/nl/linux/psp.rb', line 588

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



594
# File 'nl-linux/generated/nl/linux/psp.rb', line 594

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#dev_id ⇒ Integer

PSP device ID.

Returns:

  • (Integer)

See Also:



513
# File 'nl-linux/generated/nl/linux/psp.rb', line 513

def dev_id; self[:"dev_id"]&.value; end

#key_rotations ⇒ Integer

Number of key rotations during the lifetime of the device. Kernel statistic.

Returns:

  • (Integer)

See Also:



519
# File 'nl-linux/generated/nl/linux/psp.rb', line 519

def key_rotations; self[:"key_rotations"]&.value; end

#rx_auth_fail ⇒ Integer

Number of received PSP packets with unsuccessful authentication. Device statistic (from the PSP spec).

Returns:

  • (Integer)

See Also:



547
# File 'nl-linux/generated/nl/linux/psp.rb', line 547

def rx_auth_fail; self[:"rx_auth_fail"]&.value; end

#rx_bad ⇒ Integer

Number of received PSP packets with miscellaneous errors (invalid master key indicated by SPI, unsupported version, etc.) Device statistic (from the PSP spec).

Returns:

  • (Integer)

See Also:



560
# File 'nl-linux/generated/nl/linux/psp.rb', line 560

def rx_bad; self[:"rx_bad"]&.value; end

#rx_bytes ⇒ Integer

Number of successfully authenticated PSP bytes received, counting from the first byte after the IV through the last byte of payload. The fixed initial portion of the PSP header (16 bytes) and the PSP trailer/ICV (16 bytes) are not included in this count. Device statistic (from the PSP spec).

Returns:

  • (Integer)

See Also:



541
# File 'nl-linux/generated/nl/linux/psp.rb', line 541

def rx_bytes; self[:"rx_bytes"]&.value; end

#rx_error ⇒ Integer

Number of received PSP packets with length/framing errors. Device statistic (from the PSP spec).

Returns:

  • (Integer)

See Also:



553
# File 'nl-linux/generated/nl/linux/psp.rb', line 553

def rx_error; self[:"rx_error"]&.value; end

#rx_packets ⇒ Integer

Number of successfully processed and authenticated PSP packets. Device statistic (from the PSP spec).

Returns:

  • (Integer)

See Also:



532
# File 'nl-linux/generated/nl/linux/psp.rb', line 532

def rx_packets; self[:"rx_packets"]&.value; end

#stale_events ⇒ Integer

Number of times a socket's Rx got shut down due to using a key which went stale (fully rotated out). Kernel statistic.

Returns:

  • (Integer)

See Also:



526
# File 'nl-linux/generated/nl/linux/psp.rb', line 526

def stale_events; self[:"stale_events"]&.value; end

#tx_bytes ⇒ Integer

Number of successfully processed PSP bytes for transmit, counting from the first byte after the IV through the last byte of payload. The fixed initial portion of the PSP header (16 bytes) and the PSP trailer/ICV (16 bytes) are not included in this count. Device statistic (from the PSP spec).

Returns:

  • (Integer)

See Also:



575
# File 'nl-linux/generated/nl/linux/psp.rb', line 575

def tx_bytes; self[:"tx_bytes"]&.value; end

#tx_error ⇒ Integer

Number of PSP packets for transmission with errors. Device statistic (from the PSP spec).

Returns:

  • (Integer)

See Also:



581
# File 'nl-linux/generated/nl/linux/psp.rb', line 581

def tx_error; self[:"tx_error"]&.value; end

#tx_packets ⇒ Integer

Number of successfully processed PSP packets for transmission. Device statistic (from the PSP spec).

Returns:

  • (Integer)

See Also:



566
# File 'nl-linux/generated/nl/linux/psp.rb', line 566

def tx_packets; self[:"tx_packets"]&.value; end