rte_gpu_info(3)
π rte_gpu_info(3) β the little struct that knows everything about ur GPU π
okay bestie, welcome to the Library Functions Manual entry for rte_gpu_info, straight out of DPDK β¨ this is a C struct, not a function (ik, the name is giving function energy, it's not, don't come for me), and it's the place where all ur GPU device info lives. let's get into it π«Ά
π NAME π
rte_gpu_info β the struct that holds all the deets about a GPU device π
β¨ SYNOPSIS β¨
#include <rte_gpudev.h>
π¦ Data Fields
const char * nameuint64_t contextint16_t dev_idint16_t parentuint32_t processor_countsize_t total_memorysize_t page_sizeint16_t numa_node
πΈ Detailed Description πΈ
Store device info. likeβ¦ that's the whole job. it holds the info. it's the container bestie π
Definition at line 49 of file rte_gpudev.h.
π Field Documentation π
π const char* name
Unique identifier name β the one-of-a-kind name, no dupes allowed, it's giving main character energy β¨
Definition at line 51 of file rte_gpudev.h.
π uint64_t context
Opaque handler of the device context β opaque meaning u literally cannot see inside it, it's mysterious on purpose π just pass it around and trust the process.
Definition at line 53 of file rte_gpudev.h.
π int16_t dev_id
Device ID. short, sweet, identified π
Definition at line 55 of file rte_gpudev.h.
π int16_t parent
ID of the parent device, RTE_GPU_ID_NONE if no parent β so like, does this GPU have a mom? if not, it's RTE_GPU_ID_NONE, orphan era π periodt.
Definition at line 57 of file rte_gpudev.h.
π uint32_t processor_count
Total processors available on device β count 'em all, every single one π₯
Definition at line 59 of file rte_gpudev.h.
π size_t total_memory
Total memory available on device β the whole bag, no cap π°
Definition at line 61 of file rte_gpudev.h.
π size_t page_size
GPU memory page size β the size of a page, but a GPU page, so, yk, GPU memory page size π
Definition at line 63 of file rte_gpudev.h.
π int16_t numa_node
Local NUMA memory ID. -1 if unknown β and bestie if it's unknown, it's literally -1, she said "idk" and moved on π
Definition at line 65 of file rte_gpudev.h.
π§ Author π§
Generated automatically by Doxygen for DPDK from the source code. so like, no human wrote this prose, a robot did, and honestly? slay π€β¨
and that's the whole page bestie!! this came to u from DPDK, Version 25.11.3 π«Ά go forth and read ur GPU fields, ily, bye ππ
π¦ 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