---
name: "drm_dev_set_unique"
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_set_unique"
---

# drm\_dev\_set\_unique(9)

Set the unique name of a DRM device

## NAME

drm\_dev\_set\_unique - Set the unique name of a DRM device

## SYNOPSIS

**int drm\_dev\_set\_unique(struct drm\_device \*** *dev***, const char \*** *fmt***,** *...***);**

## ARGUMENTS

*dev*

device of which to set the unique name

*fmt*

format string for unique name

*...*

variable arguments

## DESCRIPTION

Sets the unique name of a DRM device using the specified format string and a variable list of arguments. Drivers can use this at driver probe time if the unique name of the devices they drive is static.

## RETURN

0 on success or a 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
