dma_cookie_assign(9)
dma_cookie_assign(9) π
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 π¦
- Kernel file:
./drivers/dma/dmaengine.h dma_cookie_init(9)dma_cookie_complete(9)dma_cookie_status(9)dmaengine_desc_get_callback(9)dmaengine_desc_callback_invoke(9)dmaengine_desc_get_callback_invoke(9)dmaengine_desc_callback_valid(9)
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
- 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