atc_tx_status(9)
π atc_tx_status(9) β like, the Kernel API Manual page you didn't know you needed
okay so bestie, welcome to atc_tx_status, straight out of the Kernel API Manual β¨ β this is the little function you call when you're like "heyβ¦ is my DMA transaction done yet??" π
πΈ NAME
atc_tx_status β poll for transaction completion π
like literally, you're checking whether the thing finished. that's the whole vibe check.
β¨ SYNOPSIS
enum dma_status atc_tx_status (struct dma_chan *chan , dma_cookie_t
cookie , struct dma_tx_state *txstate );
it returns an enum dma_status, bestie. that's the tea you get back β
π«Ά ARGUMENTS
chanβ the DMA channel π« (your main character)cookieβ the transaction identifier you're checking the status of πͺ (yes, it's actually called a cookie, i'm obsessed)txstateβ if this is notNULL, it gets updated with the transaction state π₯
π DESCRIPTION
so here's the deal: if txstate is passed in, then once the function returns, it reflects the driver's internal state πͺ β and you can then use it with dma_async_is_complete to check the status of multiple cookies without re-checking hardware state. no cap, that's the efficiency slay π
multiple cookies, one hardware peek. it's giving optimized. it's giving iconic. periodt π
π¦ SEE ALSO
the whole friend group, fr fr β go say hi to all of them π
Kernel file ./drivers/dma/at_hdmac.c π
struct atdma_sg(9)struct at_desc(9)enum atc_status(9)struct at_dma_chan(9)struct at_dma(9)atc_chan_is_enabled(9)atc_chan_is_paused(9)atc_chan_is_cyclic(9)set_lli_eol(9)struct at_dma_platform_data(9)struct at_dma_slave(9)atc_dostart(9)atc_calc_bytes_left(9)atc_get_llis_residue(9)atc_get_residue(9)atc_handle_error(9)atc_prep_dma_interleaved(9)atc_prep_dma_memcpy(9)atc_prep_dma_memset(9)atc_prep_slave_sg(9)atc_prep_dma_cyclic(9)atc_alloc_chan_resources(9)atc_free_chan_resources(9)at_dma_off(9)
π«Ά okay that's the page!! go poll your transactions, bestie, you're gonna do amazing π
β cute little sign-off: this one lives in ./drivers/dma, it's dated October 2026, and it answers to the name atc_tx_status(9) π byeeee ππΈ
π¦ 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