---
name: "snd_pcm_lib_ioctl"
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_lib_ioctl"
---

# snd\_pcm\_lib\_ioctl(9)

a generic PCM ioctl callback

## NAME

snd\_pcm\_lib\_ioctl - a generic PCM ioctl callback

## SYNOPSIS

**int snd\_pcm\_lib\_ioctl(struct snd\_pcm\_substream \*** *substream***, unsigned int** *cmd***, void \*** *arg***);**

## ARGUMENTS

*substream*

the pcm substream instance

*cmd*

ioctl command

*arg*

ioctl argument

## DESCRIPTION

Processes the generic ioctl commands for PCM. Can be passed as the ioctl callback for PCM ops.

## RETURN

Zero if successful, or a negative error code on failure.

## COPYRIGHT
