---
name: "drm_gem_object_free"
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_gem_object_free"
---

# drm\_gem\_object\_free(9)

free a GEM object

## NAME

drm\_gem\_object\_free - free a GEM object

## SYNOPSIS

**void drm\_gem\_object\_free(struct kref \*** *kref***);**

## ARGUMENTS

*kref*

kref of the object to free

## DESCRIPTION

Called after the last reference to the object has been lost. Must be called holding struct\_ mutex

Frees the object

## 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
