Class: Nl::Linux::DrmRas::Messages::DoGetErrorCounterReply

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

Overview

Retrieve error counter for a given node. The response includes the id, the name, and even the current value of each counter.

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
2
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::ErrorCounterAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[error_id error_name error_value])

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

#error_id ⇒ Integer

Unique identifier for a specific error counter within an node.

Returns:

  • (Integer)

See Also:



275
# File 'nl-linux/generated/nl/linux/drm_ras.rb', line 275

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

#error_name ⇒ String

Name of the error.

Returns:

  • (String)

See Also:



280
# File 'nl-linux/generated/nl/linux/drm_ras.rb', line 280

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

#error_value ⇒ Integer

Current value of the requested error counter.

Returns:

  • (Integer)

See Also:



285
# File 'nl-linux/generated/nl/linux/drm_ras.rb', line 285

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