netdev_queue_get_dma_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 β€” the net_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