---
name: "drm_mode_prune_invalid"
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_prune_invalid"
---

# drm\_mode\_prune\_invalid(9)

remove invalid modes from mode list

## NAME

drm\_mode\_prune\_invalid - remove invalid modes from mode list

## SYNOPSIS

**void drm\_mode\_prune\_invalid(struct drm\_device \*** *dev***, struct list\_head \*** *mode\_list***, bool** *verbose***);**

## ARGUMENTS

*dev*

DRM device

*mode\_list*

list of modes to check

*verbose*

be verbose about it

## DESCRIPTION

This helper function can be used to prune a display mode list after validation has been completed. All modes who's status is not MODE\_OK will be removed from the list, and if *verbose* the status code and mode name is also printed to dmesg.

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