---
name: "drm_mode_equal"
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_equal"
---

# drm\_mode\_equal(9)

test modes for equality

## NAME

drm\_mode\_equal - test modes for equality

## SYNOPSIS

**bool drm\_mode\_equal(const struct drm\_display\_mode \*** *mode1***, const struct drm\_display\_mode \*** *mode2***);**

## ARGUMENTS

*mode1*

first mode

*mode2*

second mode

## DESCRIPTION

Check to see if *mode1* and *mode2* are equivalent.

## RETURNS

True if the modes are equal, false otherwise.

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