---
name: "snd_pcm_stream_lock"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_pcm_stream_lock"
---

# snd\_pcm\_stream\_lock(9)

Lock the PCM stream

## NAME

snd\_pcm\_stream\_lock - Lock the PCM stream

## SYNOPSIS

**void snd\_pcm\_stream\_lock(struct snd\_pcm\_substream \*** *substream***);**

## ARGUMENTS

*substream*

PCM substream

## DESCRIPTION

This locks the PCM stream's spinlock or mutex depending on the nonatomic flag of the given substream. This also takes the global link rw lock (or rw sem), too, for avoiding the race with linked streams.

## COPYRIGHT
