---
name: "drm_gem_handle_delete"
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_handle_delete"
---

# drm\_gem\_handle\_delete(9)

deletes the given file-private handle

## NAME

drm\_gem\_handle\_delete - deletes the given file-private handle

## SYNOPSIS

**int drm\_gem\_handle\_delete(struct drm\_file \*** *filp***, u32** *handle***);**

## ARGUMENTS

*filp*

drm file-private structure to use for the handle look up

*handle*

userspace handle to delete

## DESCRIPTION

Removes the GEM handle from the *filp* lookup table and if this is the last handle also cleans up linked resources like GEM names.

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