atc_free_chan_resources(9)
π atc_free_chan_resources(9) β like, the Kernel API Manual page you've been waiting for π
okay so bestie, welcome to the Kernel API Manual, the little corner of the kernel docs where we talk about the AT DMA controller and specifically how to yeet all of a channel's resources into the void β¨ no cap, this one's short and sweet and honestly iconic for it.
β¨ NAME β¨
atc_free_chan_resources β free all channel resources π«Ά
like. all of them. the whole resource situation? gone. periodt.
πΈ SYNOPSIS πΈ
void atc_free_chan_resources (struct dma_chan *chan );
that's the whole signature, bestie β it returns void, so there's literally nothing to check, it's giving "no news is good news" energy π
π¦ ARGUMENTS π¦
chanβ the DMA channel π that's the one and only thing you hand it. one (1) pointer, that's it.
π SEE ALSO π
so this is the friend group π β every single one of these is part of the same AT DMA saga, iykyk:
- the Kernel file
./drivers/dma/at_hdmac.cβ that's home base, the whole source file this lives in π 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_tx_status(9)atc_alloc_chan_resources(9)β the literal opposite vibe of this page, go read it too πat_dma_off(9)
fr fr, if you're poking at DMA channels on AT hardware, this little list is your entire personality for the afternoon π
and that's the page, bestie π this came out of ./drivers/dma, dated October 2026 β write it down, put it in your notes app, slay β¨π§
π¦ 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