---
name: "dma_buf_fd"
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_fd"
---

# dma\_buf\_fd(9)

returns a file descriptor for the given dma\_buf

## NAME

dma\_buf\_fd - returns a file descriptor for the given dma\_buf

## SYNOPSIS

**int dma\_buf\_fd(struct dma\_buf \*** *dmabuf***, int** *flags***);**

## ARGUMENTS

*dmabuf*

\[in\] pointer to dma\_buf for which fd is required.

*flags*

\[in\] flags to give to fd

## DESCRIPTION

On success, returns an associated 'fd'. Else, returns error.

## COPYRIGHT
