---
name: "snd_pcm_lib_malloc_pages"
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_malloc_pages"
---

# snd\_pcm\_lib\_malloc\_pages(9)

allocate the DMA buffer

## NAME

snd\_pcm\_lib\_malloc\_pages - allocate the DMA buffer

## SYNOPSIS

**int snd\_pcm\_lib\_malloc\_pages(struct snd\_pcm\_substream \*** *substream***, size\_t** *size***);**

## ARGUMENTS

*substream*

the substream to allocate the DMA buffer to

*size*

the requested buffer size in bytes

## DESCRIPTION

Allocates the DMA buffer on the BUS type given earlier to **snd\_pcm\_lib\_preallocate\_xxx\_pages**.

## RETURN

1 if the buffer is changed, 0 if not changed, or a negative code on failure.

## COPYRIGHT
