---
name: "fb_find_best_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_best_mode"
---

# fb\_find\_best\_mode(9)

find best matching videomode

## NAME

fb\_find\_best\_mode - find best matching videomode

## SYNOPSIS

**const struct fb\_videomode \* fb\_find\_best\_mode(const struct fb\_var\_screeninfo \*** *var***, struct list\_head \*** *head***);**

## ARGUMENTS

*var*

pointer to struct fb\_var\_screeninfo

*head*

pointer to struct list\_head of modelist

## RETURNS

struct fb\_videomode, NULL if none found

## IMPORTANT

This function assumes that all modelist entries in info-\>modelist are valid.

## NOTES

Finds best matching videomode which has an equal or greater dimension than var-\>xres and var-\>yres. If more than 1 videomode is found, will return the videomode with the highest refresh rate

## COPYRIGHT
