netdev_queue_get_dma_dev(9)
πΈ NAME πΈ
okay bestie, this is netdev_queue_get_dma_dev(9) from the Kernel API Manual β¨ β it's the function that gets the DMA device for zero-copy operations π
.
β¨ SYNOPSIS β¨
struct device * netdev_queue_get_dma_dev (struct net_device *dev ,
unsigned int idx , enum netdev_queue_type type );
π ARGUMENTS π
devβ thenet_device, periodt πidxβ queue index, like which queue we're looking at π’typeβ queue type, and it's RX or TX, no cap π₯π€
π¦ DESCRIPTION π¦
So this function gets the DMA device for zero-copy operations to be used for this queue π«. If the queue is an RX queue leased from a physical queue, we retrieve the physical queue's DMA device β yep, that's the vibe π. When the DMA device is not available or valid, the function will return NULL π. That's the lore, bestie.
π₯ RETURN π₯
Device or NULL on error β literally that simple π
.
π SEE ALSO π
Kernel file ./net/core/netdev_queues.c β go peek, bestie πβ¨.
mwah π this page comes from ./net/core, dated October 2026, and it's netdev_queue_get_dma_dev(9) β bye bestie, slay your DMA adventures π«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms