snd_pcm_sgbuf_get_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_pcm_sgbuf_get_addr β€” a Kernel API Manual moment

Okay so bestie, welcome to snd_pcm_sgbuf_get_addr(9) β€” yes that's the manual page name, it's a whole thing. Sit down, hydrate, let's get into it ✨


✨ NAME ✨

snd_pcm_sgbuf_get_addr β€” literally gets you the DMA address at the corresponding offset. That's the whole vibe. 🎯


πŸŽ€ SYNOPSIS πŸŽ€

dma_addr_t snd_pcm_sgbuf_get_addr (struct snd_pcm_substream *substream ,
unsigned int ofs );

Look at her. Iconic signature. No notes. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

Two things, that's it, we love a low-maintenance function:

  • substream β€” your PCM substream. The main character of this story 🫢
  • ofs β€” a byte offset. Just a byte offset. Say it with me: byte offset. πŸ’…

🌸 RETURN 🌸

A DMA address. That's it, that's the return value. Handed to you like a little gift 🎁


🌈 SEE ALSO 🌈

Bestie. Sit down. There are so many friends in this friend group and I'm not leaving a single one out, because every one of them is valid and loved πŸ’–

Forty-plus entries and I typed every single one because that's what a real bestie does πŸ’€πŸ’–


Lowkey obsessed with how short this manpage is. Highkey obsessed that the SEE ALSO section is doing all the heavy lifting. Balance. 🌸

Alright babe, that's the page! Sourced from ./include/sound, dated October 2026 β€” take care of her, she's part of the kernel family now πŸ§šβ€β™€οΈπŸ’œβœ¨

πŸ“¦ where this page comes from