Class: Nl::Linux::Ethtool::AttributeSets::Tsinfo

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/ethtool.rb

Defined Under Namespace

Classes: Attribute, Header, HwtstampPhyindex, HwtstampProvider, HwtstampSource, PhcIndex, RxFilters, Stats, Timestamping, TxTypes

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:



2800
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2800

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



2806
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2806

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

Instance Method Details

#header ⇒ AttributeSets::Header

Returns:

See Also:



2760
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2760

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

#hwtstamp_phyindex ⇒ Integer

Returns:

  • (Integer)

See Also:



2793
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2793

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

#hwtstamp_provider ⇒ AttributeSets::TsHwtstampProvider



2784
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2784

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

#hwtstamp_source ⇒ Integer

Known enum values are defined in Enums::HwtstampSource.

Returns:

  • (Integer)

See Also:



2789
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2789

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

#phc_index ⇒ Integer

Returns:

  • (Integer)

See Also:



2776
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2776

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

#rx_filters ⇒ AttributeSets::Bitset

Returns:

See Also:



2772
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2772

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

#stats ⇒ AttributeSets::TsStat

Returns:

See Also:



2780
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2780

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

#timestamping ⇒ AttributeSets::Bitset

Returns:

See Also:



2764
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2764

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

#tx_types ⇒ AttributeSets::Bitset

Returns:

See Also:



2768
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2768

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