---
name: "drm_get_pci_dev"
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_get_pci_dev"
---

# drm\_get\_pci\_dev(9)

Register a PCI device with the DRM subsystem

## NAME

drm\_get\_pci\_dev - Register a PCI device with the DRM subsystem

## SYNOPSIS

**int drm\_get\_pci\_dev(struct pci\_dev \*** *pdev***, const struct pci\_device\_id \*** *ent***, struct drm\_driver \*** *driver***);**

## ARGUMENTS

*pdev*

PCI device

*ent*

entry from the PCI ID table that matches *pdev*

*driver*

DRM device driver

## DESCRIPTION

Attempt to gets inter module “drm” information. If we are first then register the character device and inter module information. Try and register, if we fail to register, backout previous work.

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