Class: Nl::Linux::Netdev::Messages::DoPagePoolGetReply
- Inherits:
-
Genl::Message
- Object
- Raw::Message
- Genl::Message
- Nl::Linux::Netdev::Messages::DoPagePoolGetReply
- 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[id ifindex napi_id inflight inflight_mem detach_time dmabuf io_uring])
Instance Attribute Summary
Attributes included from StructuredPayload
Instance Method Summary collapse
-
#detach_time ⇒ Integer
Seconds in CLOCK_BOOTTIME of when Page Pool was detached by the driver.
-
#dmabuf ⇒ Integer
ID of the dmabuf this page-pool is attached to.
-
#id ⇒ Integer
Unique ID of a Page Pool instance.
-
#ifindex ⇒ Integer
ifindex of the netdev to which the pool belongs.
-
#inflight ⇒ Integer
Number of outstanding references to this page pool (allocated but yet to be freed pages).
-
#inflight_mem ⇒ Integer
Amount of memory held by inflight pages.
-
#io_uring ⇒ AttributeSets::IoUringProviderInfo
io-uring memory provider information.
-
#napi_id ⇒ Integer
Id of NAPI using this Page Pool instance.
Methods inherited from Genl::Message
Methods inherited from Raw::Message
#append_attribute, decode, #initialize
Methods included from StructuredPayload
Constructor Details
This class inherits a constructor from Nl::Raw::Message
Instance Method Details
#detach_time ⇒ Integer
Seconds in CLOCK_BOOTTIME of when Page Pool was detached by the driver. Once detached Page Pool can no longer be used to allocate memory. Page Pools wait for all the memory allocated from them to be freed before truly disappearing. "Detached" Page Pools cannot be "re-attached", they are just waiting to disappear. Attribute is absent if Page Pool has not been detached, and can still be used to allocate new memory.
1833 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1833 def detach_time; attributes[:"detach_time"]&.value; end |
#dmabuf ⇒ Integer
ID of the dmabuf this page-pool is attached to.
1838 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1838 def dmabuf; attributes[:"dmabuf"]&.value; end |
#id ⇒ Integer
Unique ID of a Page Pool instance.
1795 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1795 def id; attributes[:"id"]&.value; end |
#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).
1803 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1803 def ifindex; attributes[:"ifindex"]&.value; end |
#inflight ⇒ Integer
Number of outstanding references to this page pool (allocated but yet to be freed pages). Allocated pages may be held in socket receive queues, driver receive ring, page pool recycling ring, the page pool cache, etc.
1816 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1816 def inflight; attributes[:"inflight"]&.value; end |
#inflight_mem ⇒ Integer
Amount of memory held by inflight pages.
1821 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1821 def inflight_mem; attributes[:"inflight_mem"]&.value; end |
#io_uring ⇒ AttributeSets::IoUringProviderInfo
io-uring memory provider information.
1843 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1843 def io_uring; attributes[:"io_uring"]&.value; end |
#napi_id ⇒ Integer
Id of NAPI using this Page Pool instance.
1808 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1808 def napi_id; attributes[:"napi_id"]&.value; end |