snd_compr_se...ntime_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so this is snd_compr_set_runtime_buffer β€” literally the function that sets the Compress runtime buffer. that's the whole vibe. main character energy for your audio compression stream setup 🎧✨

so yeah, you're reading the page for snd_compr_se...ntime_buffer(9) out of the Kernel API Manual β€” welcome bestie, stay a while 🫢


✨ SYNOPSIS ✨

void snd_compr_set_runtime_buffer (struct snd_compr_stream *stream ,
struct snd_dma_buffer *bufp );

that's it. that's the whole call. two args, no return value, no drama πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • stream β€” the compress stream you're setting stuff on. like, the actual thing being configured. the icon πŸ‘‘
  • bufp β€” the buffer information. and listen, this one's got a secret: pass NULL here and it clears everything instead. so NULL is not a mistake, it's a mood 🫧

🌸 DESCRIPTION 🌸

so here's what's happening, no cap: when bufp is non-NULL, it just copies the buffer information over to the runtime buffer. super chill, super straightforward πŸ’–

but when bufp is NULL? it clears the current buffer information instead. so it's giving "two modes, one function" and honestly? we love a versatile queen πŸŽ€

that's literally the whole thing. short and sweet, which is rare for a kernel function ngl 😭


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file lives at ./include/sound/compress_driver.h β€” go read it, iykyk πŸ“–

and then the whole friend group of structs and friends, all repping their (9) pages:

that's a whole lotta snd_compr besties fr fr 🌈


reminder bestie: NULL for bufp is a legit "clear it out" move, not a typo. don't come for me if you forget πŸ’€

mwah πŸ’‹ that's the page β€” sourced from ./include/sound, dated October 2026, and yes it's still called snd_compr_se...ntime_buffer(9) (the truncation is iconic at this point, we don't question it πŸ™ˆ). go set some buffers, slay, periodt. πŸ¦‹βœ¨

πŸ“¦ where this page comes from