atc_prep_dma_memcpy(9)
π atc_prep_dma_memcpy(9) π
okay so bestie, welcome to the Kernel API Manual, page atc_prep_dma_memcpy(9) β yes that's the whole title, and yes we are gonna get through it together, hand in hand, matching manicures and everything π«Άβ¨
β¨ NAME β¨
atc_prep_dma_memcpy β lowkey the function that prepares a memcpy operation π
Like, it doesn't do the copying itself, it's the little backstage crew putting the operation together. main character energy but in a supportive way, yk? π
πΈ SYNOPSIS πΈ
struct dma_async_tx_descriptor * atc_prep_dma_memcpy (struct dma_chan
*chan , dma_addr_t dest , dma_addr_t src , size_t len , unsigned long
flags );
it returns a struct dma_async_tx_descriptor *, no cap, and it takes exactly these five things β¬οΈπ
π¦ ARGUMENTS π¦
chanβ the channel to prepare the operation on. like, which lane we doing this in, bestie πdestβ operation virtual destination address. this is where the stuff goes π―srcβ operation virtual source address. this is where the stuff comes from πlenβ operation length. how much we're moving, periodt πflagsβ tx descriptor status flags. the lil status flags riding along with the descriptor π·οΈ
ngl, that's the whole argument list β five args, no mystery, we ate π₯
π SEE ALSO π
go read these next, iykyk π β the kernel file ./drivers/dma/at_hdmac.c lives here too, so like, everything's connected bestie:
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_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)
and that's the whole page, bestie, you absolutely devoured it ππ
little sign-off moment: this one lives over in ./drivers/dma π, and it's dated October 2026 β β so yeah, stay tuned for the future, it's giving timeless documentation fr fr πβ¨π¦
π¦ 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