Class: Nl::Linux::Ethtool::Notifications::LinkmodesNtf

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/ethtool.rb

Overview

Notification for change in link modes.

Constant Summary collapse

TYPE =
5
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Linkmodes
ATTRIBUTES =
Ractor.make_shareable(%i[header autoneg ours peer speed duplex master_slave_cfg master_slave_state lanes rate_matching])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#autoneg ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def autoneg; attributes[:"autoneg"]&.value; end

#duplex ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def duplex; attributes[:"duplex"]&.value; end

#header ⇒ AttributeSets::Header



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

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

#lanes ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def lanes; attributes[:"lanes"]&.value; end

#master_slave_cfg ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def master_slave_cfg; attributes[:"master_slave_cfg"]&.value; end

#master_slave_state ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def master_slave_state; attributes[:"master_slave_state"]&.value; end

#ours ⇒ AttributeSets::Bitset



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

def ours; attributes[:"ours"]&.value; end

#peer ⇒ AttributeSets::Bitset



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

def peer; attributes[:"peer"]&.value; end

#rate_matching ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def rate_matching; attributes[:"rate_matching"]&.value; end

#speed ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def speed; attributes[:"speed"]&.value; end