dma_cookie_complete(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so welcome to the Kernel API Manual, bestie β€” today’s main character is dma_cookie_complete, and she’s here to complete a descriptor. No cap. πŸ’…

✨ NAME ✨

dma_cookie_complete β€” complete a descriptor, periodt. πŸ’–

🌸 SYNOPSIS 🌸

void dma_cookie_complete (struct dma_async_tx_descriptor *tx );

πŸŽ€ ARGUMENTS πŸŽ€

  • tx β€” the descriptor to complete. that’s the whole vibe.

πŸ’– DESCRIPTION πŸ’–

So what does she actually do? She marks this descriptor complete by updating the channel’s completed cookie marker. Then she zeroes the descriptor’s cookie so accidental repeated completions don’t happen β€” literally protecting everyone from a messy repeated-completion moment. 🫢

πŸ”₯ NOTE πŸ”₯

⚠️ bestie, the caller is expected to hold a lock to prevent concurrency. Do not skip this, fr fr. πŸ”’

🌈 SEE ALSO 🌈

Kernel file: ./drivers/dma/dmaengine.h


This page is serving source/version ./drivers/dma and dated October 2026 β€” mwah, bye bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from