---
name: "drm_mode_config_cleanup"
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_config_cleanup"
---

# drm\_mode\_config\_cleanup(9)

free up DRM mode\_config info

## NAME

drm\_mode\_config\_cleanup - free up DRM mode\_config info

## SYNOPSIS

**void drm\_mode\_config\_cleanup(struct drm\_device \*** *dev***);**

## ARGUMENTS

*dev*

DRM device

## DESCRIPTION

Free up all the connectors and CRTCs associated with this DRM device, then free up the framebuffers and associated buffer objects.

Note that since this /should/ happen single-threaded at driver/device teardown time, no locking is required. It's the driver's job to ensure that this guarantee actually holds true.

## FIXME

cleanup any dangling user buffer objects too

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