snd_pcm_stream_lock_irq(9)
π snd_pcm_stream_lock_irq(9) β like, the whole glow-up
okay so bestie, we're in the Kernel API Manual today and this page is literally called snd_pcm_stream_lock_irq, no cap. she's a lil function with big main-character energy β let's get into it π
β¨ NAME β¨
snd_pcm_stream_lock_irq β Lock the PCM stream π
like yes that's it that's the whole vibe, but trust me there's lore π
π¦ SYNOPSIS π¦
void snd_pcm_stream_lock_irq (struct snd_pcm_substream *substream );
copy it exactly pls, she's precise π
πΈ ARGUMENTS πΈ
substreamβ the PCM substream π§ that's your girl, that's who you're locking
π DESCRIPTION π
so here's the tea, bestie π β this one locks the PCM stream like snd_pcm_stream_lock does, and also disables the local IRQ π₯
β οΈ but read this part carefully: the IRQ-disabling only happens when nonatomic is false. don't be out here assuming, iykyk π
and in the nonatomic case? it's identical to snd_pcm_stream_lock. literally the same thing, no extra credit, periodt π
π SEE ALSO π
like all her friends π«Ά the kernel file ./sound/core/pcm_native.c is where she lives, and then:
snd_pcm_stream_lock(9)snd_pcm_stream_unlock(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_suspend_all(9)snd_pcm_prepare(9)snd_pcm_kernel_ioctl(9)snd_pcm_lib_default_mmap(9)snd_pcm_lib_mmap_iomem(9)
mwah π and that's the page!! she lives in ./sound/core, she's stamped October 2026, and she goes by snd_pcm_stream_lock_irq(9) β go lock that stream bestie, you got this π§β¨π
π¦ 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