dma_cookie_status(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 channel
  • cookie β€” cookie we are interested in
  • state β€” dma_tx_state structure 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:


xoxo, from ./drivers/dma β€” October 2026 πŸ’–πŸ«Ά

πŸ“¦ where this page comes from