snd_pcm_stre...qsave_nested(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_pcm_stream_lock_irqsave_nested(9) β€” the Kernel API Manual, but make it make sense

okay so bestie, we're deep in the Linux kernel sound subsystem rn, and this page is from the Kernel API Manual (yes, the (9) means it's a kernel-internals thing, not a command you type in your shell, don't try it in bash ilysm).


✨ NAME ✨

snd_pcm_stream_lock_irqsave_nested β€” Single-nested PCM stream locking πŸŽ€

like, it locks the PCM stream, but make it nested. one level of nested. exactly one. we'll get there.


🌸 SYNOPSIS 🌸

snd_pcm_stream_lock_irqsave_nested (substream , flags );

that's the whole call, she's compact, she's iconic πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • substream β€” the PCM substream. the main character of this whole operation 🫢
  • flags β€” irq flags. yes, those irq flags. you know the ones. keep them safe, they're precious ✨

πŸ’– DESCRIPTION πŸ’–

so this locks the PCM stream exactly like snd_pcm_stream_lock_irqsave does (same energy, same vibe), BUT with the single-depth lockdep subclass. πŸ”₯

it's giving "same lock, but lockdep can tell this nesting level apart from the others." single-depth. one nest. not two, not zero β€” literally just the one, no cap. 😭


πŸ‘‘ SEE ALSO πŸ‘‘

and now, the friend group. the whole squad. every single one of them. ngl this is a long list but we don't skip anyone in this house πŸŽ€

kernel file ./include/sound/pcm.h β€” go read it, it's right there:

literally the entire extended universe, iykyk πŸ’€


nerd note bestie: this is kernel-internal API, not a userspace thing. you won't find her in your $PATH. she lives in ./include/sound. 🧚

πŸ“ sign-off πŸ“

source/version: ./include/sound Β· dated October 2026 β€” that's a wrap, love you, go lock your streams responsibly πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from