snd_dma_program(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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, an unsigned int
  • mode β€” the DMA transfer mode, written as DMA_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 ⭐


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