snd_compr_se...ntime_buffer(9)
π 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: passNULLhere and it clears everything instead. soNULLis 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:
struct snd_compr_task_runtime(9)struct snd_compr_runtime(9)struct snd_compr_stream(9)struct snd_compr_ops(9)struct snd_compr(9)snd_compr_use_pause_in_draining(9)
that's a whole lotta snd_compr besties fr fr π
reminder bestie:NULLforbufpis 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
- 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