snd_pcm_capture_avail(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ snd_pcm_capture_avail(9) ✨

okay so this is a page from the Kernel API Manual, bestie, and it's about snd_pcm_capture_avail β€” literally the function that tells you how much readable space your capture stream has. let's get into it πŸŽ€


🌸 NAME 🌸

snd_pcm_capture_avail β€” get the available (readable) space for capture πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

snd_pcm_uframes_t snd_pcm_capture_avail (struct snd_pcm_runtime *runtime
);

like yes that's the whole signature, it's giving "short and iconic" ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • runtime β€” the PCM runtime instance. that's your girl, she holds all the state 🫢

πŸ’… DESCRIPTION πŸ’…

so the result lands somewhere between 0 ... (boundary - 1). no cap, that's the range, and it's inclusive-ish in the way the manpage says it so i'm saying it πŸ’€

lowkey important: it's 0 ... (boundary - 1), not just "0 to boundary". don't come for me, i'm just the messenger πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

the available frame size ⭐


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./include/sound/pcm.h β€” and honestly the whole friend group is here, so:

like that's a whole roster, go read them, iykyk πŸ’œ


and that's the page!! mwah πŸ’‹ this gem lives under ./include/sound, dated October 2026, and it's literally the snd_pcm_capture_avail(9) manual page β€” main character energy only πŸ‘‘βœ¨

πŸ“¦ where this page comes from