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

# dmam\_declare\_coherent\_memory(9)

Managed dma\_declare\_coherent\_memory

## NAME

dmam\_declare\_coherent\_memory - Managed **dma\_declare\_coherent\_memory**

## SYNOPSIS

**int dmam\_declare\_coherent\_memory(struct device \*** *dev***, phys\_addr\_t** *phys\_addr***, dma\_addr\_t** *device\_addr***, size\_t** *size***, int** *flags***);**

## ARGUMENTS

*dev*

Device to declare coherent memory for

*phys\_addr*

Physical address of coherent memory to be declared

*device\_addr*

Device address of coherent memory to be declared

*size*

Size of coherent memory to be declared

*flags*

Flags

## DESCRIPTION

Managed **dma\_declare\_coherent\_memory**.

## RETURNS

0 on success, -errno on failure.

## COPYRIGHT
