Class: Nl::Linux::DrmRas::AttributeSets::ErrorCounterAttrs

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

Defined Under Namespace

Classes: Attribute, ErrorId, ErrorName, ErrorValue, NodeId

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#error_id ⇒ Integer

Unique identifier for a specific error counter within an node.

Returns:

  • (Integer)

See Also:



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

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

#error_name ⇒ String

Name of the error.

Returns:

  • (String)

See Also:



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

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

#error_value ⇒ Integer

Current value of the requested error counter.

Returns:

  • (Integer)

See Also:



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

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

#node_id ⇒ Integer

Node ID targeted by this error counter operation.

Returns:

  • (Integer)

See Also:



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

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