snd_pcm_suspend_all(9)
okay so bestie, we're in the Kernel API Manual and the page is literally snd_pcm_suspend_all(9) β yes, the whole vibe is βtrigger SUSPEND to all substreams in the given pcm.β Periodt. π
β¨ NAME β¨
snd_pcm_suspend_all β trigger SUSPEND to all substreams in the given pcm π€
π¦ SYNOPSIS π¦
int snd_pcm_suspend_all (struct snd_pcm *pcm );
π ARGUMENTS π
pcmβ the PCM instance. That's the thing you're handing over, bestie.
πΈ DESCRIPTION πΈ
Okay so here's the tea, no cap: it literally takes and releases pcm->open_mutex to serialize against concurrent open/close while walking the substreams. The way that it does the locking is very main character energy so the open/close girlies don't collide. π«Ά
After this call, all streams are changed to SUSPENDED state. All of them. The whole squad is asleep. π΄β¨
π RETURN π
- Zero if successful (or
pcmisNULL) β iconic, we love a clean success. - Or a negative error code β not the slay we wanted, but that's the return vibe.
π SEE ALSO π
Kernel file ./sound/core/pcm_native.c β that's the source-file bestie for this one. Also check out these absolute legends:
snd_pcm_stream_lock(9)snd_pcm_stream_unlock(9)snd_pcm_stream_lock_irq(9)snd_pcm_stream_unlock_irq(9)snd_pcm_stream_unlock_irqrestore(9)snd_pcm_set_state(9)snd_pcm_get_state(9)snd_pcm_hw_params_choose(9)snd_pcm_start(9)snd_pcm_stop(9)snd_pcm_drain_done(9)snd_pcm_stop_xrun(9)snd_pcm_prepare(9)snd_pcm_kernel_ioctl(9)snd_pcm_lib_default_mmap(9)snd_pcm_lib_mmap_iomem(9)
π and that's the page, bestie. source/version:./sound/coreΒ· date:October 2026Β· go off and suspend responsibly π
π¦ 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