Class: Nl::Linux::RtLink::AttributeSets::LinkinfoTunAttrs

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

Defined Under Namespace

Classes: Attribute, Group, MultiQueue, NumDisabledQueues, NumQueues, Owner, Persist, Pi, Type, VnetHdr

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:



5990
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 5990

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



5996
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 5996

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

Instance Method Details

#group ⇒ Integer

Returns:

  • (Integer)

See Also:



5955
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 5955

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

#multi_queue ⇒ Integer

Returns:

  • (Integer)

See Also:



5975
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 5975

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

#num_disabled_queues ⇒ Integer

Returns:

  • (Integer)

See Also:



5983
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 5983

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

#num_queues ⇒ Integer

Returns:

  • (Integer)

See Also:



5979
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 5979

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

#owner ⇒ Integer

Returns:

  • (Integer)

See Also:



5951
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 5951

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

#persist ⇒ Integer

Returns:

  • (Integer)

See Also:



5971
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 5971

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

#pi ⇒ Integer

Returns:

  • (Integer)

See Also:



5963
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 5963

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

#type ⇒ Integer

Returns:

  • (Integer)

See Also:



5959
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 5959

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

#vnet_hdr ⇒ Integer

Returns:

  • (Integer)

See Also:



5967
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 5967

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