Class: Nl::Linux::DrmRas::AttributeSets::NodeAttrs

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/drm_ras.rb

Defined Under Namespace

Classes: Attribute, DeviceName, NodeId, NodeName, NodeType

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



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

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

def by_type(type); BY_TYPE.fetch(type); end

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:



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

def device_name; self[:"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:



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

def node_id; self[:"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:



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

def node_name; self[:"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:



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

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