rte_mempool_objhdr(3)

πŸ’– rte_mempool_objhdr πŸ’–

okay so bestie, welcome to the Library Functions Manual page for rte_mempool_objhdr(3) β€” yes that's the manual name, and yes we're gonna read the whole thing together, no skimming, I got you 🫢


🌸 NAME 🌸

rte_mempool_objhdr β€” the header struct that lives right in front of every single object in your mempool ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <rte_mempool.h>

πŸ’… Public Member Functions

  • RTE_STAILQ_ENTRY (rte_mempool_objhdr) next β€” the linked-list hook so your objects can chain together.

πŸ“ Data Fields

  • struct rte_mempool * mp β€” the mempool that owns this object. its home, its ride-or-die πŸ’œ
  • rte_iova_t iova β€” the IO address of the object πŸ”₯

πŸ¦‹ Detailed Description πŸ¦‹

It's a mempool object header structure, periodt. πŸ’…

Every object stored in mempools is prefixed by this header structure β€” like, it literally sits in front of the object, main character positioning honestly πŸ‘‘ β€” and it lets you do two iconic things: retrieve the mempool pointer straight from the object, and iterate over all the objects attached to a mempool. 🌈

When debug is enabled, a cookie is also added into this structure, preventing corruptions and double-frees. πŸͺ not a snack cookie bestie, a safety cookie, and it is SO important, do not come for it.

Definition at line 153 of file rte_mempool.h.

✨ Member Function Documentation ✨

πŸ’– RTE_STAILQ_ENTRY (rte_mempool_objhdr ) πŸ’–

Next in list.

literally just: next in list. that's the whole vibe. πŸ¦‹


πŸŽ€ Field Documentation πŸŽ€

πŸ’œ struct rte_mempool* mp

The mempool owning the object. 🫢

Definition at line 155 of file rte_mempool.h.

πŸ’œ rte_iova_t iova

IO address of the object. ⭐

Definition at line 156 of file rte_mempool.h.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. no human wrote this, the machine did, and honestly? it ate. πŸ€–βœ¨


okay that's the whole page bestie, you understood ALL of it, i'm so proud of you πŸ˜­πŸ’–

Cute little sign-off for the record: this was DPDK, Version 25.11.3, and the page is rte_mempool_objhdr(3). slay, go forth and iterate your mempool objects responsibly πŸŽ€πŸ’…

πŸ“¦ where this page comes from