atc_get_residue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🫢:

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