snd_dma_program(9)
π NAME π
snd_dma_program β the one where you program an ISA DMA transfer β¨
(and yes bestie, this is the <pink>Kernel API Manual</pink>, section 9, we're in the deep end of the pool and honestly? slay.)
πΈ SYNOPSIS πΈ
void snd_dma_program (unsigned long dma , unsigned long addr , unsigned int size , unsigned short mode );
Like, that's the whole vibe. It's a void function β nothing gets handed back to you, it just does the thing π
π¦ ARGUMENTS π¦
dmaβ the dma number. literally just which DMA you're talking to πaddrβ the physical address of the buffer. physical, okay? not your cute little virtual pointer, the physical one π«Άsizeβ the DMA transfer size, anunsigned intmodeβ the DMA transfer mode, written asDMA_MODE_XXXπ
β¨ DESCRIPTION β¨
Okay so hear me out: this function programs an ISA DMA transfer for the given buffer. That's it. That's the whole description. Short, iconic, no notes π
It takes your dma number, the physical addr of your buffer, the size of the transfer and the mode (DMA_MODE_XXX, iykyk) and sets up the ISA DMA transfer for that buffer. Main character energy, zero return value, we love a lowkey legend π
ngl the manpage keeps it very brief here, so I'm not gonna sit here and invent lore that isn't in the source. Take the facts, take the vibe, go forth π§
β SEE ALSO β
- Kernel file
./sound/core/isadma.cβ the source, go read her π snd_dma_disable(9)snd_dma_pointer(9)snd_devm_request_dma(9)
okay that's the page!! mwah π
This little love letter lives under ./sound/core in the tree, dated October 2026, and it goes by snd_dma_program(9) β catch you in the kernel, bestie πππ¦
π¦ 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