dma_cookie_status(9)
π dma_cookie_status π
okay bestie, welcome to the Kernel API Manual β this one is short, sweet, and literally all about checking on a DMA cookie πͺβ¨
β¨ NAME β¨
dma_cookie_status β report cookie status
πΈ SYNOPSIS πΈ
enum dma_status dma_cookie_status (struct dma_chan *chan , dma_cookie_t
cookie , struct dma_tx_state *state );
π ARGUMENTS π
chanβ dma channelcookieβ cookie we are interested instateβdma_tx_statestructure to return last/used cookies π
three args, no cap π
π¦ DESCRIPTION π¦
So this one reports the status of the cookie, and if state is non-NULL, it fills that state structure in for you. Itβs giving βstatus report, but make it DMAβ π
And the iconique part? No locking is required. fr fr, no mutex energy needed here πβ¨
π₯ SEE ALSO π₯
Kernel file ./drivers/dma/dmaengine.h, plus the whole squad:
dma_cookie_init(9)dma_cookie_assign(9)dma_cookie_complete(9)dmaengine_desc_get_callback(9)dmaengine_desc_callback_invoke(9)dmaengine_desc_get_callback_invoke(9)dmaengine_desc_callback_valid(9)
xoxo, from ./drivers/dma β October 2026 ππ«Ά
π¦ 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