1SND_PCM_STREAM_LOCK(9) PCM API SND_PCM_STREAM_LOCK(9)
23
4
NAME
6snd_pcm_stream_lock - Lock the PCM stream
7
SYNOPSIS
9void snd_pcm_stream_lock(struct snd_pcm_substream * substream);
10
ARGUMENTS
12substream
13PCM substream
14
DESCRIPTION
16This locks the PCM stream's spinlock or mutex depending on the
17nonatomic flag of the given substream. This also takes the global link
18rw lock (or rw sem), too, for avoiding the race with linked streams.
19
COPYRIGHT
21Kernel Hackers Manual 3.10 June 2019 SND_PCM_STREAM_LOCK(9)