ep93xx_dma_prep_slave_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 in sgl. 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:

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