dma_async_is_complete(9)
π« dma_async_is_complete(9) π«
okay so bestie, welcome to the Kernel API Manual β¨ this one is dma_async_is_complete, and it is literally the vibe-check function for DMA cookies πͺ
πΈ NAME πΈ
dma_async_is_complete β test a cookie against chan state πͺβ
β¨ SYNOPSIS β¨
enum dma_status dma_async_is_complete (dma_cookie_t cookie ,
dma_cookie_t last_complete , dma_cookie_t last_used );
no cap, that's the whole signature π«Ά
π ARGUMENTS π
cookieβ the transaction identifier you're testing the status of πͺπ like, this is the cookie we're asking aboutlast_completeβ the last known completed transaction π the most recent one we know finishedlast_usedβ the last cookie value handed out π« the freshest number that got given away
π¦ DESCRIPTION π¦
so dma_async_is_complete is the little icon that gets used in dma_async_is_tx_complete π and the reason the logic is split out like this? it's for lightweight testing of multiple cookies π like, you can check a whole bunch of them without dragging the whole heavy machinery along. lowkey elegant, highkey slay π
β¨
π₯ SEE ALSO π₯
kernel file ./include/linux/dmaengine.h π and then, bestie, brace yourself, because the friend group is huge:
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)struct dma_tx_state(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)
fr fr, that's the whole group chat π±π
ok and one last thing bestie β this page lives at ./include/linux π and it's dated October 2026 ποΈ so like, mark your calendar, mwah π periodt π
hope that helped, ily, go check those cookies πͺπ
π¦ 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