rte_mempool_memhdr(3)
β¨ rte_mempool_memhdr β¨
okay bestie, welcome to the rte_mempool_memhdr(3) glow-up π this one lives in the Library Functions Manual, and it is genuinely the little struct that holds your mempool's memory chunks together. no cap.
πΈ NAME πΈ
rte_mempool_memhdr β the memory header struct for mempool objects, and yes she is iconic π
π«Ά SYNOPSIS π«Ά
#include <rte_mempool.h>
Public Member Functions
RTE_STAILQ_ENTRY (rte_mempool_memhdr) nextβ the linked-list glue, bestie β¨
Data Fields
struct rte_mempool * mpvoid * addrrte_iova_t iovasize_t lenrte_mempool_memchunk_free_cb_t * free_cbvoid * opaque
π Detailed Description π
Mempool objects memory header structure π
so basically: these are the memory chunks where objects are stored. each chunk is virtually and physically contiguous, which is the whole point, and it's giving extremely well-behaved memory. π¦
- Definition at line
206of filerte_mempool.h.
π Member Function Documentation π
RTE_STAILQ_ENTRY (rte_mempool_memhdr )
Next in list. literally just "who's next in the list" energy, periodt π
π Field Documentation π
struct rte_mempool* mpβ The mempool owning the chunk π
Definition at line 208 of file rte_mempool.h.
void* addrβ Virtual address of the chunk β¨
Definition at line 209 of file rte_mempool.h.
rte_iova_t iovaβ IO address of the chunk π¦
Definition at line 210 of file rte_mempool.h.
size_t lenβ length of the chunk π (yes, lowercaselen, and I'm not going to rename her, that's her government name)
Definition at line 211 of file rte_mempool.h.
rte_mempool_memchunk_free_cb_t* free_cbβ Free callback π
Definition at line 212 of file rte_mempool.h.
void* opaqueβ Argument passed to the free callback π
Definition at line 213 of file rte_mempool.h.
πΈ Author πΈ
Generated automatically by Doxygen for DPDK from the source code. not a human author, just Doxygen doing her little thing π
real talk though: every single one of those "Definition at line" numbers is exact, so if you're reading the actual header, they'll match. iykyk π§
mwah, that's the whole page bestie β go forth and manage your memory chunks responsibly π
DPDK Β· Version 25.11.3 β that's the version and the source tag, straight from the footer, no filter needed β thanks for reading, ily, bye π π«Ά
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms