STRUCT DMA_TX_STATE(9)
πΈ 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 statesDMA_IN_PROGRESSandDMA_PAUSEDif this is implemented in the driver, else0π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 π
dma_cookie_t(9)enum dma_status(9)enum dma_transaction_type(9)enum dma_transfer_direction(9)struct data_chunk(9)struct dma_interleaved_template(9)struct dma_vec(9)enum dma_ctrl_flags(9)enum sum_check_bits(9)enum sum_check_flags(9)enum dma_desc_metadata_mode(9)struct dma_chan_percpu(9)struct dma_router(9)struct dma_chan(9)struct dma_chan_dev(9)enum dma_slave_buswidth(9)struct dma_slave_config(9)enum dma_residue_granularity(9)struct dma_slave_caps(9)dma_filter_fn(9)struct dma_async_tx_descriptor(9)enum dmaengine_alignment(9)struct dma_slave_map(9)struct dma_filter(9)struct dma_device(9)dmaengine_prep_peripheral_dma_vec(9)dmaengine_prep_config_sg_safe(9)dmaengine_prep_config_single_safe(9)dmaengine_prep_dma_memset(9)dmaengine_terminate_all(9)dmaengine_terminate_async(9)dmaengine_synchronize(9)dmaengine_terminate_sync(9)dma_async_issue_pending(9)dma_async_is_tx_complete(9)dma_async_is_complete(9)
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
- 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