---
name: "dma_buf_get"
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_buf_get"
---

# dma\_buf\_get(9)

returns the dma\_buf structure related to an fd

## NAME

dma\_buf\_get - returns the dma\_buf structure related to an fd

## SYNOPSIS

**struct dma\_buf \* dma\_buf\_get(int** *fd***);**

## ARGUMENTS

*fd*

\[in\] fd associated with the dma\_buf to be returned

## DESCRIPTION

On success, returns the dma\_buf structure associated with an fd; uses file's refcounting done by fget to increase refcount. returns ERR\_PTR otherwise.

## COPYRIGHT
