---
name: "drm_mode_connector_attach_encoder"
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_mode_connector_attach_encoder"
---

# drm\_mode\_connector\_attach\_encoder(9)

attach a connector to an encoder

## NAME

drm\_mode\_connector\_attach\_encoder - attach a connector to an encoder

## SYNOPSIS

**int drm\_mode\_connector\_attach\_encoder(struct drm\_connector \*** *connector***, struct drm\_encoder \*** *encoder***);**

## ARGUMENTS

*connector*

connector to attach

*encoder*

encoder to attach *connector* to

## DESCRIPTION

This function links up a connector to an encoder. Note that the routing restrictions between encoders and crtcs are exposed to userspace through the possible\_clones and possible\_crtcs bitmasks.

## RETURNS

Zero on success, errno 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
