dma_cookie_assign(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, this page is from the Kernel API Manual, and it's literally about giving a DMA descriptor its own little cookie. slay. πŸͺ✨


πŸŽ€ NAME πŸŽ€

dma_cookie_assign β€” assign a DMA engine cookie to the descriptor. no cap, that's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

dma_cookie_t dma_cookie_assign (struct dma_async_tx_descriptor *tx );

🧚 ARGUMENTS 🧚

  • tx β€” the descriptor that needs a cookie. like, it's standing at the cookie counter, waiting. πŸͺπŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

Assigns a unique non-zero per-channel cookie to the descriptor. periodt. it's not zero, it's not shared across channels, it's that descriptor's special little cookie. πŸ’…βœ¨


⚠️ NOTE ⚠️

caller is expected to hold a lock to prevent concurrency. fr fr, do not skip this β€” the concurrency goblins are real. πŸ˜­πŸ”’

πŸ¦‹ SEE ALSO πŸ¦‹


source/version/date check: ./drivers/dma Β· October 2026 Β· this iconic page is dma_cookie_assign(9) β€” bye bestie, hydrate and hold your locks πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from