Class: Nl::Linux::Netdev::Messages::DumpPagePoolGetRequest

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/netdev.rb

Overview

Get / dump information about Page Pools. Only Page Pools associated by the driver with a net_device can be listed. ifindex will not be reported if the net_device no longer exists.

Constant Summary collapse

TYPE =
5
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::PagePool
ATTRIBUTES =
Ractor.make_shareable(%i[ifindex])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#ifindex ⇒ Integer

ifindex of the netdev to which the pool belongs. May not be reported if the page pool was allocated for a netdev which got destroyed already (page pools may outlast their netdevs because they wait for all memory to be returned).

Returns:

  • (Integer)

See Also:



1861
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1861

def ifindex; attributes[:"ifindex"]&.value; end