---
name: "dma_pool_alloc"
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/dma_pool_alloc"
---

# dma\_pool\_alloc(9)

get a block of consistent memory

## NAME

dma\_pool\_alloc - get a block of consistent memory

## SYNOPSIS

**void \* dma\_pool\_alloc(struct dma\_pool \*** *pool***, gfp\_t** *mem\_flags***, dma\_addr\_t \*** *handle***);**

## ARGUMENTS

*pool*

dma pool that will produce the block

*mem\_flags*

GFP\_\* bitmask

*handle*

pointer to dma address of block

## DESCRIPTION

This returns the kernel virtual address of a currently unused block, and reports its dma address through the handle. If such a memory block can't be allocated, **NULL** is returned.

## COPYRIGHT
