rte_dma_conf(3)

πŸ’– rte_dma_conf(3) πŸ’–

okay so bestie, we're looking at rte_dma_conf β€” it lives over in the DPDK Library Functions Manual and it's literally just a lil struct, but she's important. no cap. let's get into it 🫢


✨ NAME ✨

rte_dma_conf β€” a struct that holds the config for your DMA device, and yes she's the whole personality πŸ’…


🌸 SYNOPSIS 🌸

#include <rte_dmadev.h>

πŸŽ€ Data Fields

  • uint16_t nb_vchans β€” how many virtual DMA channels you're setting up
  • uint64_t flags β€” the config vibe check flags

πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

A structure used to configure a DMA device.

that's it, that's the whole serve. she's a config struct, she configures a DMA device, she knows what she is πŸ‘‘

See also: rte_dma_configure β€” go read her too, she's the one who actually uses this struct, iykyk ✨

Definition at line 360 of file rte_dmadev.h.


πŸ’œ FIELD DOCUMENTATION πŸ’œ

🌈 uint16_t nb_vchans

the number of virtual DMA channels to set up for your DMA device, periodt. 🧚

BUT β€” and this is the important part, don't skip it β€” this value cannot be greater than the max_vchans field of struct rte_dma_info, and you get that from rte_dma_info_get(). so like, ask nicely first, get your rte_dma_info, and then respect the limit. going over is giving delulu and it will not slay 😭

Definition at line 365 of file rte_dmadev.h.

🌈 uint64_t flags

DMA device configuration flags, defined as RTE_DMA_CFG_FLAG_*. go check those macros for the actual menu of options πŸ’–

Definition at line 375 of file rte_dmadev.h.


πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. so like, not a human's handwriting bestie, the docs wrote themselves fr fr πŸ€–βœ¨


and that's the whole page!! πŸ’– she was generated by Doxygen for DPDK, Version 25.11.3 β€” that's the source and the version right there babes, mwah 🫢 bye bestie, go configure something iconic βœ¨πŸ’…

πŸ“¦ where this page comes from