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 * mp
  • void * addr
  • rte_iova_t iova
  • size_t len
  • rte_mempool_memchunk_free_cb_t * free_cb
  • void * 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 206 of file rte_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, lowercase len, 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