---
name: "snd_pcm_lib_preallocate_pages_for_all"
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_preallocate_pages_for_all"
---

# snd\_pcm\_lib\_preallocate\_pages\_for\_all(9)

pre-allocation for continuous memory type (all substreams)

## NAME

snd\_pcm\_lib\_preallocate\_pages\_for\_all - pre-allocation for continuous memory type (all substreams)

## SYNOPSIS

**int snd\_pcm\_lib\_preallocate\_pages\_for\_all(struct snd\_pcm \*** *pcm***, int** *type***, void \*** *data***, size\_t** *size***, size\_t** *max***);**

## ARGUMENTS

*pcm*

the pcm instance

*type*

DMA type (SNDRV\_DMA\_TYPE\_\*)

*data*

DMA type dependent data

*size*

the requested pre-allocation size in bytes

*max*

the max. allowed pre-allocation size

## DESCRIPTION

Do pre-allocation to all substreams of the given pcm for the specified DMA type.

## RETURN

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

## COPYRIGHT
