Class: Nl::Linux::Ethtool::Messages::DoModuleSetRequest

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

Overview

Set module params.

Constant Summary collapse

TYPE =
35
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Module
ATTRIBUTES =
Ractor.make_shareable(%i[header power_mode_policy power_mode])

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

#header ⇒ AttributeSets::Header



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

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

#power_mode ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#power_mode_policy ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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