dma_cookie_complete(9)
π¦ dma_cookie_complete(9) π¦
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
dma_cookie_init(9)dma_cookie_assign(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)
This page is serving source/version ./drivers/dma and dated October 2026 β mwah, bye bestie πβ¨
π¦ 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