snd_pcm_stream_lock(9)

snd_pcm_stream_lock9

Lock the pcm stream

Usage

void snd_pcm_stream_lock(struct snd_pcm_substream * substream);

Arguments

substream

PCM substream

Overview

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.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.