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

# drm\_prime\_gem\_destroy(9)

helper to clean up a PRIME-imported GEM object

## NAME

drm\_prime\_gem\_destroy - helper to clean up a PRIME-imported GEM object

## SYNOPSIS

**void drm\_prime\_gem\_destroy(struct drm\_gem\_object \*** *obj***, struct sg\_table \*** *sg***);**

## ARGUMENTS

*obj*

GEM object which was created from a dma-buf

*sg*

the sg-table which was pinned at import time

## DESCRIPTION

This is the cleanup functions which GEM drivers need to call when they use *drm\_gem\_prime\_import* to import dma-bufs.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
