rte_memzone(3)
π rte_memzone π
okay bestie, gather round, because today we're meeting rte_memzone β the main character of the DPDK memory world. this page lives in section 3 of the manual (Library Functions Manual, iykyk), so think of it as the little laminated card taped to the inside of your locker that explains exactly what a memzone is. no cap, every field, every line number, every "Definition at line" β it's all here. let's go π¦
β¨ NAME β¨
rte_memzone β the struct that describes a memzone, periodt.
πΈ SYNOPSIS πΈ
#include <rte_memzone.h>
π Data Fields
so here's the lineup of fields, in the order the page lists them:
char name [RTE_MEMZONE_NAMESIZE]rte_iova_t iovasize_t lenuint64_t hugepage_szint32_t socket_iduint32_t flags
π Detailed Description π
A structure describing a memzone, which is a contiguous portion of physical memory identified by a name.
fr fr, that's the whole vibe: a memzone is a chunk of physical memory, it's contiguous, and you find it again by its name. that's it. that's the girl. π
Definition at line 48 of file rte_memzone.h.
π§ Field Documentation π§
this is the part where we meet every single member one by one, like a reality show intro sequence. no skips, no cuts. π
char name[RTE_MEMZONE_NAMESIZE]β Name of the memory zone.
Definition at line 51 of file rte_memzone.h.
rte_iova_t iovaβ Start IO address.
Definition at line 53 of file rte_memzone.h.
void* addrβ Start virtual address.
Definition at line 55 of file rte_memzone.h.
uint64_t addr_64β Makes sure addr is always 64-bits. (yes, it really does say that, and yes, it's iconic of it to just announce its whole purpose like that π)
Definition at line 56 of file rte_memzone.h.
size_t lenβ Length of the memzone.
Definition at line 58 of file rte_memzone.h.
uint64_t hugepage_szβ The page size of underlying memory.
Definition at line 60 of file rte_memzone.h.
int32_t socket_idβ NUMA socket ID.
Definition at line 62 of file rte_memzone.h.
uint32_t flagsβ Characteristics of this memzone.
Definition at line 64 of file rte_memzone.h.
psst β tiny lil heads-up so you're not confused later: the Data Fields list up in the synopsis doesn't nameaddroraddr_64, but the Field Documentation absolutely does, at lines 55 and 56. i'm not fixing it, i'm just telling you, because that's how the page reads. π
π«Ά Author π«Ά
Generated automatically by Doxygen for DPDK from the source code.
okay and that's the whole page, bestie!! you now know rte_memzone better than it knows itself. this little doc came to you courtesy of DPDK, Version 25.11.3 β so if you're out here slaying with memzones, that's the version whose manual you just read. mwah, go build something gorgeous. πβ¨ππ¦πΈπ
π¦ 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