Class: Nl::Linux::Tc::AttributeSets::ActAttrs

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

Defined Under Namespace

Classes: Attribute, Cookie, Flags, HwStats, InHwCount, Index, Kind, Options, Pad, Stats, UsedHwStats

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:



2879
# File 'nl-linux/generated/nl/linux/tc.rb', line 2879

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



2885
# File 'nl-linux/generated/nl/linux/tc.rb', line 2885

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

Instance Method Details

Returns:

  • (String)

See Also:



2856
# File 'nl-linux/generated/nl/linux/tc.rb', line 2856

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

#flags ⇒ Nl::Bitfield32

Returns:

See Also:



2860
# File 'nl-linux/generated/nl/linux/tc.rb', line 2860

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

#hw_stats ⇒ Nl::Bitfield32

Returns:

See Also:



2864
# File 'nl-linux/generated/nl/linux/tc.rb', line 2864

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

#in_hw_count ⇒ Integer

Returns:

  • (Integer)

See Also:



2872
# File 'nl-linux/generated/nl/linux/tc.rb', line 2872

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

#index ⇒ Integer

Returns:

  • (Integer)

See Also:



2848
# File 'nl-linux/generated/nl/linux/tc.rb', line 2848

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

#kind ⇒ String

Returns:

  • (String)

See Also:



2840
# File 'nl-linux/generated/nl/linux/tc.rb', line 2840

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

#stats ⇒ AttributeSets::TcaStatsAttrs

Returns:

See Also:



2852
# File 'nl-linux/generated/nl/linux/tc.rb', line 2852

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

#used_hw_stats ⇒ Nl::Bitfield32

Returns:

See Also:



2868
# File 'nl-linux/generated/nl/linux/tc.rb', line 2868

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