shdma_add_desc(9)
shdma_add_desc(9) π
okay so bestie, welcome to the Kernel API Manual corner of the group chat β this page is all about shdma_add_desc, and we're gonna get, set up and return one transfer descriptor together β¨ no cap.
πΈ NAME πΈ
shdma_add_desc β get, set up and return one transfer descriptor π
β¨ SYNOPSIS β¨
struct shdma_desc * shdma_add_desc (struct shdma_chan *schan , unsigned long flags , dma_addr_t *dst , dma_addr_t *src , size_t *len , struct shdma_desc **first , enum dma_transfer_direction direction );
π«Ά ARGUMENTS π«Ά
vibe check on the arguments, bestie β every one matters:
schanβ the DMA channel, main character energy πflagsβ DMA transfer flags, iconic little switches β¨dstβ destination DMA address; it gets incremented whendirectionequalsDMA_DEV_TO_MEMorDMA_MEM_TO_MEMπ₯srcβ source DMA address; it gets incremented whendirectionequalsDMA_MEM_TO_DEVorDMA_MEM_TO_MEMπ«lenβ DMA transfer length, literally the length πfirstβ if it'sNULL, it gets set to the current descriptor and the cookie gets set to-EBUSYπdirectionβ needed for slave DMA to decide which address to keep constant; it equalsDMA_MEM_TO_MEMfor MEMCPY π
Also, for the record: Returns 0 or an error. Locks: called with desc_lock held β respect the lock, bestie, no cap π
.
π SEE ALSO π
- Kernel file β
./drivers/dma/sh/shdma-base.cπ§
mwah π β source/version: ./drivers/dma/sh; date: October 2026. that's the whole page, bestie, periodt π
π¦ 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