Class: Nl::Linux::DrmRas::AttributeSets::NodeAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::DrmRas::AttributeSets::NodeAttrs
- 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
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#device_name ⇒ String
Device name chosen by the driver at registration.
-
#node_id ⇒ Integer
Unique identifier for the node.
-
#node_name ⇒ String
Node name chosen by the driver at registration.
-
#node_type ⇒ Integer
Type of this node, identifying its function.
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.
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.
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.
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.
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.
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.
107 |
# File 'nl-linux/generated/nl/linux/drm_ras.rb', line 107 def node_type; self[:"node_type"]&.value; end |