vchan_tx_desc_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« vchan_tx_desc_free β€” the Kernel API Manual glow-up πŸ’«

okay so bestie, you're in the Kernel API Manual and today's main character is vchan_tx_desc_free(9) β€” the little function that lets your reusable DMA descriptor go πŸ¦‹βœ¨


🌸 NAME 🌸

vchan_tx_desc_free β€” free a reusable descriptor, literally just set it free 🫢


✨ SYNOPSIS ✨

int vchan_tx_desc_free (struct dma_async_tx_descriptor *tx );

πŸŽ€ ARGUMENTS πŸŽ€

  • tx β€” the transfer πŸ‘‘ (that's the descriptor you're about to release, bestie)

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea: this function frees a descriptor that was, like, previously allocated as a reusable one. It's giving cleanup era. πŸ’–

The only other way to do this is to clear the DMA_CTRL_REUSE flag and submit one last time the transfer β€” that's it, those are the two paths, no cap.

It returns 0 upon success ⭐


🌈 SEE ALSO 🌈

  • Kernel file ./drivers/dma/virt-dma.c β€” go read it, iykyk πŸ“–πŸ¦‹

and that's the whole page, bestie β€” short and iconic, fr fr. πŸ’œ

source/version: ./drivers/dma Β· dated October 2026 Β· page vchan_tx_desc_free(9) β€” mwah, ily, go free those descriptors responsibly πŸ§šβ€β™€οΈπŸŽ€πŸ’…

πŸ“¦ where this page comes from