STRUCT DMA_TX_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Okay bestie, welcome to struct dma_tx_state(9) from the Kernel API Manual ✨ This is the struct that gets filled in to report the status of a transfer. That’s the whole vibe β€” it’s giving β€œstatus report but make it C” πŸ¦‹


✨ SYNOPSIS ✨

Here’s the struct in all its main-character glory β€” copy it exactly, no edits, fr fr:

       struct dma_tx_state {
           dma_cookie_t last;
           dma_cookie_t used;
           u32 residue;
           u32 in_flight_bytes;
        };

🫢 Members 🫢

Member-by-member vibe check, and yes every single one matters πŸ’…

  • last β€” last completed DMA cookie πŸ“
  • used β€” last issued DMA cookie (i.e. the one in progress) ✨
  • residue β€” the remaining number of bytes left to transmit on the selected transfer for states DMA_IN_PROGRESS and DMA_PAUSED if this is implemented in the driver, else 0 πŸ’–
  • in_flight_bytes β€” amount of data in bytes cached by the DMA. πŸŽ€

πŸ’… SEE ALSO πŸ’…

Kernel file ./include/linux/dmaengine.h is the home base, and here’s the whole linked-bestie squad β€” all of them, no skipping πŸ‘‘


Cute sign-off time πŸŽ€ this page comes from source/version ./include/linux, dated October 2026, and it’s struct dma_tx_state(9) β€” periodt. πŸ’œ

πŸ“¦ where this page comes from