rte_mempool(3)
β¨ NAME β¨
rte_mempool β bestie, this is the mempool page from the DPDK Library Functions Manual, and it's literally the whole struct tour, ok? buckle up π
π¦ SYNOPSIS π¦
#include <rte_mempool.h>
π Data Fields
char name [RTE_MEMPOOL_NAMESIZE]void * pool_configconst struct rte_memzone * mzunsigned int flagsint socket_iduint32_t sizeuint32_t cache_sizeuint32_t elt_sizeuint32_t header_sizeuint32_t trailer_sizeunsigned private_data_sizeint32_t ops_indexstruct rte_mempool_cache * local_cacheuint32_t populated_sizestruct rte_mempool_objhdr_list elt_listuint32_t nb_mem_chunksstruct rte_mempool_memhdr_list mem_list
π Detailed Description π
okay so this is the RTE mempool structure. that's the whole vibe. πΈ
Definition at line 230 of file rte_mempool.h.
π Field Documentation π
char name[RTE_MEMPOOL_NAMESIZE]
The name of the mempool, periodt. it has a name and it's iconic π
Definition at line 231 of file rte_mempool.h.
void* pool_data
The ring or pool that stores the objects. this is where the actual stuff lives π«Ά
Definition at line 233 of file rte_mempool.h.
uint64_t pool_id
The external mempool identifier β like, its little ID card for the outside world πͺͺ
Definition at line 234 of file rte_mempool.h.
void* pool_config
Optional args for ops alloc. optional!! no pressure π¦
Definition at line 236 of file rte_mempool.h.
const struct rte_memzone* mz
The memzone where the pool is alloc'd. it's got a whole zone to itself, main character energy π
Definition at line 237 of file rte_mempool.h.
unsigned int flags
The flags of the mempool. flags!! we love a flag moment β¨
Definition at line 238 of file rte_mempool.h.
int socket_id
The socket id that was passed in at create time. remember where you came from bestie π₯Ί
Definition at line 239 of file rte_mempool.h.
uint32_t size
The max size of the mempool. the ceiling, the limit, the "that's enough" line π₯
Definition at line 240 of file rte_mempool.h.
uint32_t cache_size
The size of the per-lcore default local cache. every lcore gets its own little stash π
Definition at line 241 of file rte_mempool.h.
uint32_t elt_size
The size of an element. one single element's size, no cap π
Definition at line 244 of file rte_mempool.h.
uint32_t header_size
The size of the header β and it sits before the elt. before!! β¬ οΈ
Definition at line 245 of file rte_mempool.h.
uint32_t trailer_size
The size of the trailer β and this one sits after the elt. after!! β‘οΈ
Definition at line 246 of file rte_mempool.h.
unsigned private_data_size
The size of private data. it's private, mind your business π
Definition at line 248 of file rte_mempool.h.
int32_t ops_index
This is the index into the rte_mempool_ops_table array of mempool ops structs, which contain callback function pointers. and the reason we're using an index here rather than pointers to the callbacks: it facilitates any secondary processes that may want to use this mempool. yes, it's giving "designed for the multi-process girlies" π
Definition at line 256 of file rte_mempool.h.
struct rte_mempool_cache* local_cache
The per-lcore local cache. yours, locally, on your lcore π
Definition at line 258 of file rte_mempool.h.
uint32_t populated_size
The number of populated objects. count 'em, they're real β
Definition at line 260 of file rte_mempool.h.
struct rte_mempool_objhdr_list elt_list
The list of objects in the pool. a whole list of them π
Definition at line 261 of file rte_mempool.h.
uint32_t nb_mem_chunks
The number of memory chunks. chunks!! π§
Definition at line 262 of file rte_mempool.h.
struct rte_mempool_memhdr_list mem_list
The list of memory chunks. yep, the chunks get a list too, and honestly they earned it π
Definition at line 263 of file rte_mempool.h.
πΈ Author πΈ
Generated automatically by Doxygen for DPDK from the source code. no human wrote this, it was literally birthed by Doxygen π automated icon behavior fr fr
ok that's the whole page bestie, every field, every line number, every last crumb β nothing skipped, we ate and left zero crumbs π β¨
with love, from the DPDK Library Functions Manual β DPDK, Version 26.03.0 ππ¦π (and that's the sign-off, mwah π)
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms