Class: Nl::Linux::DevEnergymodel

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

Overview

Energy model netlink interface to notify its changes.

Defined Under Namespace

Modules: AttributeSets, Flags, Messages, Notifications, Structs Classes: AsyncOperations

Constant Summary collapse

NAME =
"dev-energymodel"
VERSION =
1

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Genl::Family

version

Class Method Details

.open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) ⇒ DevEnergymodel .open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) {|family| ... } ⇒ Object

Overloads:

  • .open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) ⇒ DevEnergymodel

    Parameters:

    • resolver (#call) (defaults to: ::Nl::Linux::DEFAULT_RESOLVER)
    • executor (Symbol, nil) (defaults to: nil)
    • notification_capacity (Integer, nil) (defaults to: DEFAULT_NOTIFICATION_CAPACITY)

    Returns:

  • .open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) {|family| ... } ⇒ Object

    Returns the result of the block.

    Parameters:

    • resolver (#call) (defaults to: ::Nl::Linux::DEFAULT_RESOLVER)
    • executor (Symbol, nil) (defaults to: nil)
    • notification_capacity (Integer, nil) (defaults to: DEFAULT_NOTIFICATION_CAPACITY)

    Yield Parameters:

    Returns:

    • (Object) —

      the result of the block



31
32
33
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 31

def self.open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY)
  super
end

Instance Method Details

#async(stream_capacity: nil) ⇒ AsyncOperations

Returns the asynchronous operation facade for this family.

Parameters:

  • stream_capacity (::Integer, nil) (defaults to: nil)

Returns:



513
514
515
516
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 513

def async(stream_capacity: nil)
  return @async_operations ||= build_async_facade(AsyncOperations) if stream_capacity.nil?
  build_async_facade(AsyncOperations, stream_capacity:)
end

#do_get_perf_domains(**args) ⇒ Messages::DoGetPerfDomainsReply

Get the list of information for all performance domains.

Parameters:

  • args (Hash)

Options Hash (**args):

  • perf_domain_id (Integer) —

    A unique ID number for each performance domain.

Returns:

See Also:



449
450
451
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 449

def do_get_perf_domains(**args)
  exchange_message(:"do", Messages::DoGetPerfDomainsRequest, Messages::DoGetPerfDomainsReply, args)
end

#do_get_perf_table(**args) ⇒ Messages::DoGetPerfTableReply

Get the energy model table of a performance domain.

Parameters:

  • args (Hash)

Options Hash (**args):

  • perf_domain_id (Integer) —

    A unique ID number for each performance domain.

Returns:

See Also:



474
475
476
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 474

def do_get_perf_table(**args)
  exchange_message(:"do", Messages::DoGetPerfTableRequest, Messages::DoGetPerfTableReply, args)
end

#dump_get_perf_domains(**args) ⇒ Array<Messages::DumpGetPerfDomainsReply> #dump_get_perf_domains(**args) {|reply| ... } ⇒ void

Get the list of information for all performance domains.

Overloads:

See Also:



465
466
467
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 465

def dump_get_perf_domains(**args, &block)
  exchange_message(:"dump", Messages::DumpGetPerfDomainsRequest, Messages::DumpGetPerfDomainsReply, args, &block)
end

#subscribe(*groups) ⇒ self

Parameters:

  • groups (Array<:event>)

Returns:

  • (self)


520
521
522
523
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 520

def subscribe(*groups) = super
# @rbs (*(:event) groups) -> self
# @param [Array<:event>] groups
# @return [self]

#unsubscribe(*groups) ⇒ self

Parameters:

  • groups (Array<:event>)

Returns:

  • (self)


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

def unsubscribe(*groups) = super