snd_compr_stop_error(9)
β¨ snd_compr_stop_error(9) β¨
okay so bestie, welcome to the Kernel API Manual π this little page is all about snd_compr_stop_error β the function you call when a stream has fully Given Up and you need to break the news to it π«Ά
πΈ NAME πΈ
snd_compr_stop_error β report a fatal error on a stream ππ
π¦ SYNOPSIS π¦
int snd_compr_stop_error (struct snd_compr_stream *stream ,
snd_pcm_state_t state );
π ARGUMENTS π
streamβ pointer to the stream, bestie. that's the stream we're about to β¨handleβ¨stateβ the state we want to transition the stream into. yes, you get to pick where it lands π
π DESCRIPTION π
So what it does is: it stops the stream and sets its state. that's the whole vibe. iconic, lowkey, does exactly what it says on the tin π
β οΈ fr fr important: this should be called with the compressed device lock held. no cap, don't skip that part π
β RETURN β
Returns zero if it slayed (successful β¨), or a negative error code if it did not π
π SEE ALSO π
Kernel file ./sound/core/compress_offload.c, plus these besties:
and that's the whole page!! mwah π this little gem lives in ./sound/core and the version we're looking at is dated October 2026, filed under snd_compr_stop_error(9). go forth and stop those error-y streams, bestie π§π
π¦ 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