drm_mode_validate_size(9)

drm_mode_validate_size9

Make sure modes adhere to size constraints

Usage

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

Overview

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 <[email protected]>
Intel Corporation,

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,

Contributions all over the place

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.