adm_prep_slave_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… adm_prep_slave_sg(9) β€” like, the whole glow-up

okay so bestie, welcome to the Kernel API Manual ✨ this little page is all about adm_prep_slave_sg(9), and yes it's as niche as it sounds. it's a kernel function, it's in the DMA world, and it's lowkey iconic for what it does. let's get into it πŸ’–


✨ NAME ✨

adm_prep_slave_sg β€” it preps a slave sg transaction. that's it, that's the whole name, no cap πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the signature, copy-pasted with love and zero typos, bestie:

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

the way it returns a struct dma_async_tx_descriptor *… main character energy fr fr πŸ‘‘


🌸 ARGUMENTS 🌸

okay now the little cast of characters, one by one, no skipping:

  • chan β€” the dma channel πŸ’« like, the actual channel this whole thing runs on
  • sgl β€” the scatter gather list πŸ“ yes, the list itself, the whole lineup
  • sg_len β€” the length of sg πŸ“ how long that list is being, basically
  • direction β€” the DMA transfer direction 🧭 it's an enum dma_transfer_direction, so it knows which way the data's going
  • flags β€” the DMA flags 🚩 the little unsigned long of options
  • context β€” transfer context, and ngl it's marked (unused) πŸ™ˆ so yeah, it's there, it's invited to the party, it just doesn't dance
no cap, context is literally listed as unused in the original β€” so don't come for me, I'm just the messenger πŸ’€

🫢 SEE ALSO 🫢

bestie, this is the friend group πŸ‘―β€β™€οΈ the kernel file is ./drivers/dma/qcom/qcom_adm.c and here's everyone else in the circle:

go read them all, i'll wait πŸ’œ


🌈 sign-off 🌈

this page lives under ./drivers/dma/qcom in the Kernel API Manual, and it's dated October 2026 ⭐ that's the version, that's the date, and honestly? she ate. periodt πŸ’…βœ¨

you're now officially caught up on adm_prep_slave_sg(9) β€” go forth and prep those slave sg transactions, queen πŸ‘‘πŸ¦‹πŸ’–

πŸ“¦ where this page comes from