xilinx_mcdma_prep_slave_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ xilinx_mcdma_prep_slave_sg(9) πŸŽ€

hiii bestie!! welcome to the Kernel API Manual πŸ’– this one's about xilinx_mcdma_prep_slave_sg, and no cap, it's lowkey the moment before anything actually moves. it's giving "packing the bags before the trip" energy 🧳✨


🌸 NAME 🌸

xilinx_mcdma_prep_slave_sg β€” prepare descriptors for a DMA_SLAVE transaction πŸ¦‹

like, you're not doing the transfer yet, you're setting up the little descriptor guys that'll do it later. main character prep work fr fr πŸ’…


✨ SYNOPSIS ✨

struct dma_async_tx_descriptor * xilinx_mcdma_prep_slave_sg (struct
dma_chan *dchan , struct scatterlist *sgl , unsigned int sg_len , enum
dma_transfer_direction direction , unsigned long flags , void *context
);

look at that signature, iconic honestly πŸ”₯ returns a struct dma_async_tx_descriptor *, so keep that in your notes πŸ“


πŸ’œ ARGUMENTS πŸ’œ

okay so here's who's invited to the function call party πŸŽ‰

  • dchan β€” the DMA channel πŸ‘‘ this is your main character, the whole vibe
  • sgl β€” the scatterlist to transfer to/from πŸ“ it's the actual guest list of memory
  • sg_len β€” number of entries in scatterlist πŸ”’ yes bestie, count them
  • direction β€” DMA direction 🧭 which way the data's vibing
  • flags β€” transfer ack flags 🚩 the little acknowledgment stickers
  • context β€” APP words of the descriptor 🌈 extra lil words that ride along

⭐ RETURN ⭐

Async transaction descriptor on success πŸ’– and NULL on failure 😭

so yeah, always check for that NULL, bestie. it's not being dramatic, it's being correct πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group 🫢 starting with a Kernel file:

like I said β€” the whole group chat πŸ’€ every single one of them, don't leave anyone on read πŸ’Œ


and that's the page bestie!! 🧚 go prep those descriptors, you're gonna slay 🫢

later, legend πŸ’œ β€” this one came from ./drivers/dma/xilinx, dated October 2026, and it's xilinx_mcdma_prep_slave_sg(9) all day ⭐

πŸ“¦ where this page comes from