---
name: "dma_buf_export_named"
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_export_named"
---

# dma\_buf\_export\_named(9)

Creates a new dma\_buf, and associates an anon file with this buffer, so it can be exported. Also connect the allocator specific data and ops to the buffer. Additionally, provide a name string for exporter; useful in debugging.

## NAME

dma\_buf\_export\_named - Creates a new dma\_buf, and associates an anon file with this buffer, so it can be exported. Also connect the allocator specific data and ops to the buffer. Additionally, provide a name string for exporter; useful in debugging.

## SYNOPSIS

**struct dma\_buf \* dma\_buf\_export\_named(void \*** *priv***, const struct dma\_buf\_ops \*** *ops***, size\_t** *size***, int** *flags***, const char \*** *exp\_name***);**

## ARGUMENTS

*priv*

\[in\] Attach private data of allocator to this buffer

*ops*

\[in\] Attach allocator-defined dma buf ops to the new buffer.

*size*

\[in\] Size of the buffer

*flags*

\[in\] mode flags for the file.

*exp\_name*

\[in\] name of the exporting module - useful for debugging.

## DESCRIPTION

Returns, on success, a newly created dma\_buf object, which wraps the supplied private data and operations for dma\_buf\_ops. On either missing ops, or error in allocating struct dma\_buf, will return negative error.

## COPYRIGHT
