---
name: "snd_dma_alloc_pages_fallback"
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_dma_alloc_pages_fallback"
---

# snd\_dma\_alloc\_pages\_fallback(9)

allocate the buffer area according to the given type with fallback

## NAME

snd\_dma\_alloc\_pages\_fallback - allocate the buffer area according to the given type with fallback

## SYNOPSIS

**int snd\_dma\_alloc\_pages\_fallback(int** *type***, struct device \*** *device***, size\_t** *size***, struct snd\_dma\_buffer \*** *dmab***);**

## ARGUMENTS

*type*

the DMA buffer type

*device*

the device pointer

*size*

the buffer size to allocate

*dmab*

buffer allocation record to store the allocated data

## DESCRIPTION

Calls the memory-allocator function for the corresponding buffer type. When no space is left, this function reduces the size and tries to allocate again. The size actually allocated is stored in res\_size argument.

## RETURN

Zero if the buffer with the given size is allocated successfully, otherwise a negative value on error.

## COPYRIGHT
