atc_tx_status(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 not NULL, 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 πŸ’–


🫢 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