rte_dma_info(3)
π rte_dma_info β the whole vibe, explained π
okay bestie, so this is rte_dma_info(3), a page from the DPDK Library Functions Manual, and it's literally just the blueprint for one lil' struct that tells you everything about a DMA device. no cap. let's get into it π¦
β¨ NAME β¨
rte_dma_info β the struct you use to peek at a DMA device's whole personality π
πΈ SYNOPSIS πΈ
#include <rte_dmadev.h>
π Data Fields π
const char * dev_nameuint64_t dev_capauint16_t max_vchansuint16_t max_descuint16_t min_descuint16_t max_sgesint16_t numa_nodeuint16_t nb_vchansuint16_t nb_priorities
π Detailed Description π
A structure used to retrieve the information of a DMA device. that's it, that's the whole job. it's giving "tell me everything about this DMA device and don't leave out the details" π
See also
rte_dma_info_get β the function that actually fills this bad boy in π«Ά
Definition at line 313 of file rte_dmadev.h.
π§ Field Documentation π§
const char* dev_name
Unique device name. one-of-a-kind, main character energy only π
Definition at line 314 of file rte_dmadev.h.
uint64_t dev_capa
Device capabilities (RTE_DMA_CAPA_*). all the flags describing what this device can actually do β¨
Definition at line 316 of file rte_dmadev.h.
uint16_t max_vchans
Maximum number of virtual DMA channels supported. that's the ceiling, bestie π₯
Definition at line 318 of file rte_dmadev.h.
uint16_t max_desc
Maximum allowed number of virtual DMA channel descriptors. the upper limit, periodt π
Definition at line 320 of file rte_dmadev.h.
uint16_t min_desc
Minimum allowed number of virtual DMA channel descriptors. and the lower limit too, we don't do zero πΈ
Definition at line 322 of file rte_dmadev.h.
uint16_t max_sges
Maximum number of source or destination scatter-gather entry supported. okay so pay attention here, because there are two whole cases:
- If the device does not support the COPY_SG capability, this value can be zero.
- If the device does support the COPY_SG capability, then
rte_dma_copy_sg()parameternb_src/nb_dstshould not exceed this value. so don't be out here overshooting, the vibe check will catch you π
Definition at line 330 of file rte_dmadev.h.
int16_t numa_node
NUMA node connection, -1 if unknown. if it's -1 it's lowkey a mystery π
Definition at line 332 of file rte_dmadev.h.
uint16_t nb_vchans
Number of virtual DMA channel configured. not the max β the actual count you've set up π
Definition at line 334 of file rte_dmadev.h.
uint16_t nb_priorities
Number of priority levels (must be > 1) if priority scheduling is supported, 0 otherwise. so either you got priorities or you got a big fat zero, no in-between π
Definition at line 338 of file rte_dmadev.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. not a human writing this by hand, it's a machine and honestly? it ate π€β¨
and that's the whole page, bestie!! this one came straight outta DPDK Version 25.11.3, dated with the rte_dma_info(3) footer energy β go get that DMA info, you're gonna slay π«Άππ
π¦ 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