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

# dma\_release\_from\_coherent(9)

try to free the memory allocated from per-device coherent memory pool

## NAME

dma\_release\_from\_coherent - try to free the memory allocated from per-device coherent memory pool

## SYNOPSIS

**int dma\_release\_from\_coherent(struct device \*** *dev***, int** *order***, void \*** *vaddr***);**

## ARGUMENTS

*dev*

device from which the memory was allocated

*order*

the order of pages allocated

*vaddr*

virtual address of allocated pages

## DESCRIPTION

This checks whether the memory was allocated from the per-device coherent memory pool and if so, releases that memory.

Returns 1 if we correctly released the memory, or 0 if **dma\_release\_coherent** should proceed with releasing memory from generic pools.

## COPYRIGHT
