rte_memseg(3)

πŸ’– rte_memseg(3) πŸ’–

okay bestie, we're looking at rte_memseg from the rte_memory.h header β€” this is a Library Functions Manual situation and it's genuinely iconic. it's the struct that describes a physical memory segment. that's the whole vibe. πŸŽ€


✨ NAME ✨

rte_memseg β€” your physical memory segment descriptor, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <rte_memory.h>

🌸 Data Fields 🌸

  • rte_iova_t iova
  • size_t len
  • uint64_t hugepage_sz
  • int32_t socket_id
  • uint32_t nchannel
  • uint32_t nrank
  • uint32_t flags

πŸ‘‘ Detailed Description πŸ‘‘

Physical memory segment descriptor. that's it, that's the girl. she's literally defined at line 49 of the file rte_memory.h, and she's serving structure. 🫢


πŸŽ€ Field Documentation πŸŽ€

⭐ rte_iova_t iova

Start IO address. (definition at line 50 of rte_memory.h)

⭐ void* addr

Start virtual address. (definition at line 52 of rte_memory.h)

⭐ uint64_t addr_64

Makes sure addr is always 64 bits β€” yes ma'am, future-proofing is a love language. (definition at line 53 of rte_memory.h)

⭐ size_t len

Length of the segment. (definition at line 55 of rte_memory.h)

⭐ uint64_t hugepage_sz

The pagesize of underlying memory. (definition at line 56 of rte_memory.h)

⭐ int32_t socket_id

NUMA socket ID. know your socket, bestie. (definition at line 57 of rte_memory.h)

⭐ uint32_t nchannel

Number of channels. (definition at line 58 of rte_memory.h)

⭐ uint32_t nrank

Number of ranks. (definition at line 59 of rte_memory.h)

⭐ uint32_t flags

Memseg-specific flags. (definition at line 60 of rte_memory.h)

πŸ’€ quick heads up: addr and addr_64 show up in the Field Documentation but not in the synopsis data fields list up top. the manpage said it, so i'm saying it. i don't make the rules. πŸ™ˆ

🌈 Author 🌈

Generated automatically by Doxygen for DPDK from the source code. not a human author, just a robot doing her little thing and honestly? she ate. πŸ€–βœ¨


mwah, that's the whole page bestie πŸ’– this came to you from the DPDK crew β€” Version 25.11.3 β€” and it's giving <rainbow>certified rte_memseg(3) realness</rainbow>. go off, memory segment. 🌟

πŸ“¦ where this page comes from