atc_get_residue(9)
π atc_get_residue(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this page is literally all about atc_get_residue, and no cap, it's the glow-up you needed. So what does it do? Simple: it gets the number of bytes residue for a cookie πͺ. And the residue itself? It gets passed by address and updated on success. That's the whole vibe. π
π SYNOPSIS π
int atc_get_residue (struct dma_chan *chan , dma_cookie_t cookie , u32
*residue );
three lil arguments and you're in, fr fr π
π¦ ARGUMENTS π¦
chanβ the DMA channel, she's the main character here π«cookieβ the transaction identifier you're checking the status of πͺ (iykyk)residueβ the residue that's gonna get updated, okay periodt β¨
πΈ RETURN πΈ
0 on success π β otherwise you get a -errno and, like, that's not the vibe π
π SEE ALSO π
Kernel file ./drivers/dma/at_hdmac.c and its whole friend group, gathered here for your reading pleasure π«Ά:
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_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_tx_status(9)atc_alloc_chan_resources(9)atc_free_chan_resources(9)at_dma_off(9)
like, the whole friend group showed up for this one ππ₯
and that's the page, babe π§π β brought to you by ./drivers/dma, dated October 2026, filed ever so cutely under atc_get_residue(9). slay, go read your kernel source, mwah π
β¨
π¦ 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