---
name: "drm_pci_alloc"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_pci_alloc"
---

# drm\_pci\_alloc(9)

Allocate a PCI consistent memory block, for DMA.

## NAME

drm\_pci\_alloc - Allocate a PCI consistent memory block, for DMA.

## SYNOPSIS

**drm\_dma\_handle\_t \* drm\_pci\_alloc(struct drm\_device \*** *dev***, size\_t** *size***, size\_t** *align***);**

## ARGUMENTS

*dev*

DRM device

*size*

size of block to allocate

*align*

alignment of block

## RETURN

A handle to the allocated memory block on success or NULL on failure.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
