ep93xx_dma_prep_slave_sg(9)
π ep93xx_dma_prep_slave_sg β kernel API manual, bestie edition β¨
okay so this is a page from the Kernel API Manual (section 9), and the star of the show is ep93xx_dma_prep_slave_sg. she prepares a slave DMA operation and honestly? she ate. let's get into it π
πΈ NAME πΈ
ep93xx_dma_prep_slave_sg β prepare a slave DMA operation β¨
π¦ SYNOPSIS π¦
struct dma_async_tx_descriptor * ep93xx_dma_prep_slave_sg (struct
dma_chan *chan , struct scatterlist *sgl , unsigned int sg_len , enum
dma_transfer_direction dir , unsigned long flags , void *context );
like, that's the whole vibe. six arguments, one descriptor, no cap π
π ARGUMENTS π
chanβ the channel. that's it, that's the whole description, she's mysterious like that π«Άsglβ the list of buffers to transfer (a scatterlist, iykyk) πsg_lenβ how many entries are insgl. counting is important bestie π₯dirβ the direction of the DMA transfer πflagsβ flags for the descriptor β¨contextβ operation context, and lowkey she's just there for the vibes because she is ignored π
β DESCRIPTION β
returns a valid DMA descriptorβ¦ or NULL if it failed π that's the whole plot. no plot twists, no secret lore, just: descriptor good, NULL bad. main character energy fr fr π
ngl bestie, always vibe check your return value before you use it. NULL means it did NOT slay.
π SEE ALSO π
kernel file ./drivers/dma/ep93xx_dma.c, plus the whole friend group:
struct ep93xx_dma_desc(9)struct ep93xx_dma_chan(9)struct ep93xx_dma_engine(9)ep93xx_dma_set_active(9)ep93xx_dma_advance_active(9)ep93xx_dma_advance_work(9)ep93xx_dma_tx_submit(9)ep93xx_dma_alloc_chan_resources(9)ep93xx_dma_free_chan_resources(9)ep93xx_dma_prep_dma_memcpy(9)ep93xx_dma_prep_dma_cyclic(9)ep93xx_dma_synchronize(9)ep93xx_dma_terminate_all(9)ep93xx_dma_tx_status(9)ep93xx_dma_issue_pending(9)
like literally the entire group chat, all tagged, all accounted for π§π
that's the page!! mwah π this one lives in ./drivers/dma and it's dated October 2026 β source and version and everything, so you know it's legit. go prep those slave SG transfers, bestie, and remember: check for NULL πβ¨π
π¦ 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