Class: Nl::Linux::Nlctrl::AttributeSets::PolicyAttrs

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

Defined Under Namespace

Classes: Attribute, Bitfield32Mask, Mask, MaxLength, MaxValueS, MaxValueU, MinLength, MinValueS, MinValueU, Pad, PolicyIdx, PolicyMaxtype, Type

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:



453
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 453

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



459
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 459

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

Instance Method Details

#bitfield32_mask ⇒ Integer

Returns:

  • (Integer)

See Also:



442
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 442

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

#mask ⇒ Integer

Returns:

  • (Integer)

See Also:



446
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 446

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

#max_length ⇒ Integer

Returns:

  • (Integer)

See Also:



430
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 430

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

#max_value_s ⇒ Integer

Returns:

  • (Integer)

See Also:



414
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 414

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

#max_value_u ⇒ Integer

Returns:

  • (Integer)

See Also:



422
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 422

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

#min_length ⇒ Integer

Returns:

  • (Integer)

See Also:



426
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 426

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

#min_value_s ⇒ Integer

Returns:

  • (Integer)

See Also:



410
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 410

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

#min_value_u ⇒ Integer

Returns:

  • (Integer)

See Also:



418
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 418

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

#policy_idx ⇒ Integer

Returns:

  • (Integer)

See Also:



434
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 434

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

#policy_maxtype ⇒ Integer

Returns:

  • (Integer)

See Also:



438
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 438

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

#type ⇒ Integer

Known enum values are defined in Enums::AttrType.

Returns:

  • (Integer)

See Also:



406
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 406

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