---
name: "drm_dev_register"
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_dev_register"
---

# drm\_dev\_register(9)

Register DRM device

## NAME

drm\_dev\_register - Register DRM device

## SYNOPSIS

**int drm\_dev\_register(struct drm\_device \*** *dev***, unsigned long** *flags***);**

## ARGUMENTS

*dev*

Device to register

*flags*

Flags passed to the driver's .**load** function

## DESCRIPTION

Register the DRM device *dev* with the system, advertise device to user-space and start normal device operation. *dev* must be allocated via **drm\_dev\_alloc** previously.

Never call this twice on any device!

## RETURNS

0 on success, negative error code on failure.

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