rte_memseg_list(3)

πŸ’– rte_memseg_list πŸ’–

okay bestie, welcome to rte_memseg_list(3) β€” that's the manual name, she's from the DPDK library functions family, and she's literally the struct that holds your memory segment list metadata. let's get into it 🫢


✨ NAME ✨

rte_memseg_list

that's it. that's the name. short, iconic, no notes. πŸ’…


🌸 SYNOPSIS 🌸

first things first, you gotta pull her in:

#include <rte_memory.h>

πŸŽ€ Data Fields πŸŽ€

here's the little squad of fields hanging out in the synopsis:

  • uint64_t page_sz
  • int socket_id
  • volatile uint32_t version
  • size_t len
  • unsigned int external
  • unsigned int heap

πŸ¦‹ Detailed Description πŸ¦‹

so memseg list is lowkey a special case, because we need to store a whole bunch of other data right there together with the array itself. she's not just an array, she's an array and her little accessories. main character energy fr fr. ✨

Definition at line 67 of file rte_memory.h.

πŸ’œ Field Documentation πŸ’œ

🌈 void* base_va

Base virtual address for this memseg list. the origin point, the home base, the where-it-all-starts. πŸ’«

Definition at line 69 of file rte_memory.h.

🌈 uint64_t addr_64

Makes sure addr is always 64-bits. she said consistency or nothing, no cap. πŸ”₯

Definition at line 71 of file rte_memory.h.

🌈 uint64_t page_sz

Page size for all memsegs in this list. every single one of them. same size. uniform. slay. πŸ‘‘

Definition at line 74 of file rte_memory.h.

🌈 int socket_id

Socket ID for all memsegs in this list. where they live, basically. 🏠

Definition at line 75 of file rte_memory.h.

🌈 volatile uint32_t version

version number for multiprocess sync. notice the volatile bestie β€” she's being watched across processes, she can change on you at any moment, do not get comfy. 😭

Definition at line 76 of file rte_memory.h.

🌈 size_t len

Length of memory area covered by this memseg list. how much she covers. the reach. the range. πŸ¦‹

Definition at line 77 of file rte_memory.h.

🌈 unsigned int external

1 if this list points to external memory. just 1. zero or one, that's the whole vibe. πŸ’…

Definition at line 78 of file rte_memory.h.

🌈 unsigned int heap

1 if this list points to a heap. same deal, 1 means yes. πŸ“

Definition at line 79 of file rte_memory.h.

⭐ Author ⭐

Generated automatically by Doxygen for DPDK from the source code. not a human, a machine, and she ate. πŸ€–βœ¨


okay that's the whole page, bestie, you're basically a memseg list expert now, periodt πŸŽ€

this has been rte_memseg_list(3) from the Library Functions Manual, DPDK Version 25.11.3 β€” mwah, love u, go read some source code πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from