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

# snd\_malloc\_pages(9)

allocate pages with the given size

## NAME

snd\_malloc\_pages - allocate pages with the given size

## SYNOPSIS

**void \* snd\_malloc\_pages(size\_t** *size***, gfp\_t** *gfp\_flags***);**

## ARGUMENTS

*size*

the size to allocate in bytes

*gfp\_flags*

the allocation conditions, GFP\_XXX

## DESCRIPTION

Allocates the physically contiguous pages with the given size.

## RETURN

The pointer of the buffer, or **NULL** if no enough memory.

## COPYRIGHT
