---
name: "drm_gem_handle_create"
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_create"
---

# drm\_gem\_handle\_create(9)

create a gem handle for an object

## NAME

drm\_gem\_handle\_create - create a gem handle for an object

## SYNOPSIS

**int drm\_gem\_handle\_create(struct drm\_file \*** *file\_priv***, struct drm\_gem\_object \*** *obj***, u32 \*** *handlep***);**

## ARGUMENTS

*file\_priv*

drm file-private structure to register the handle for

*obj*

object to register

*handlep*

pionter to return the created handle to the caller

## DESCRIPTION

Create a handle for this object. This adds a handle reference to the object, which includes a regular reference count. Callers will likely want to dereference the object afterwards.

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