Class: Nl::Linux::DrmRas::Messages::DumpListNodesReply

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

Overview

Retrieve the full list of currently registered DRM RAS nodes. Each node includes its dynamically assigned ID, name, and type. Important: User space must call this operation first to obtain the node IDs. These IDs are required for all subsequent operations on nodes, such as querying error counters.

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
1
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::NodeAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[node_id device_name node_name node_type])

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

#device_name ⇒ String

Device name chosen by the driver at registration. Can be a PCI BDF, UUID, or module name if unique.

Returns:

  • (String)

See Also:



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

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

#node_id ⇒ Integer

Unique identifier for the node. Assigned dynamically by the DRM RAS core upon registration.

Returns:

  • (Integer)

See Also:



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

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

#node_name ⇒ String

Node name chosen by the driver at registration. Can be an IP block name, or any name that identifies the RAS node inside the device.

Returns:

  • (String)

See Also:



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

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

#node_type ⇒ Integer

Type of this node, identifying its function.

Known enum values are defined in Enums::NodeType.

Returns:

  • (Integer)

See Also:



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

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