Class: Nl::Linux::DevEnergymodel::Messages::DumpGetPerfDomainsReply

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

Overview

Get the list of information for all performance domains.

Constant Summary collapse

TYPE =
1
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::PerfDomain
ATTRIBUTES =
Ractor.make_shareable(%i[pad perf_domain_id flags cpus])

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

#cpus ⇒ Array<Integer>

CPUs that belong to this performance domain.

Returns:

  • (Array<Integer>)

See Also:



358
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 358

def cpus; attributes[:"cpus"].map(&:value); end

#flags ⇒ Integer

Bitmask of performance domain flags.

Known flags are defined in Flags::PerfDomainFlags.

Returns:

  • (Integer)

See Also:



353
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 353

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

#perf_domain_id ⇒ Integer

A unique ID number for each performance domain.

Returns:

  • (Integer)

See Also:



346
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 346

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