---
name: "fb_find_nearest_mode"
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/fb_find_nearest_mode"
---

# fb\_find\_nearest\_mode(9)

find closest videomode

## NAME

fb\_find\_nearest\_mode - find closest videomode

## SYNOPSIS

**const struct fb\_videomode \* fb\_find\_nearest\_mode(const struct fb\_videomode \*** *mode***, struct list\_head \*** *head***);**

## ARGUMENTS

*mode*

pointer to struct fb\_videomode

*head*

pointer to modelist

## DESCRIPTION

Finds best matching videomode, smaller or greater in dimension. If more than 1 videomode is found, will return the videomode with the closest refresh rate.

## COPYRIGHT
