Class: Nl::Linux::DrmRas::Messages::DoGetErrorCounterRequest

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[node_id error_id])

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:



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

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

#node_id ⇒ Integer

Node ID targeted by this error counter operation.

Returns:

  • (Integer)

See Also:



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

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