---
name: "dma_buf_detach"
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_detach"
---

# dma\_buf\_detach(9)

Remove the given attachment from dmabuf's attachments list; optionally calls detach of dma\_buf\_ops for device-specific detach

## NAME

dma\_buf\_detach - Remove the given attachment from dmabuf's attachments list; optionally calls **detach** of dma\_buf\_ops for device-specific detach

## SYNOPSIS

**void dma\_buf\_detach(struct dma\_buf \*** *dmabuf***, struct dma\_buf\_attachment \*** *attach***);**

## ARGUMENTS

*dmabuf*

\[in\] buffer to detach from.

*attach*

\[in\] attachment to be detached; is free'd after this call.

## COPYRIGHT
