---
name: "drm_mode_validate_size"
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_validate_size"
---

# drm\_mode\_validate\_size(9)

make sure modes adhere to size constraints

## NAME

drm\_mode\_validate\_size - make sure modes adhere to size constraints

## SYNOPSIS

**void drm\_mode\_validate\_size(struct drm\_device \*** *dev***, struct list\_head \*** *mode\_list***, int** *maxX***, int** *maxY***);**

## ARGUMENTS

*dev*

DRM device

*mode\_list*

list of modes to check

*maxX*

maximum width

*maxY*

maximum height

## DESCRIPTION

This function is a helper which can be used to validate modes against size limitations of the DRM device/connector. If a mode is too big its status memeber is updated with the appropriate validation failure code. The list itself is not changed.

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