---
name: "drm_mode_destroy"
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_destroy"
---

# drm\_mode\_destroy(9)

remove a mode

## NAME

drm\_mode\_destroy - remove a mode

## SYNOPSIS

**void drm\_mode\_destroy(struct drm\_device \*** *dev***, struct drm\_display\_mode \*** *mode***);**

## ARGUMENTS

*dev*

DRM device

*mode*

mode to remove

## DESCRIPTION

Release *mode*'s unique ID, then free it *mode* structure itself using kfree.

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