'\" t .\" Title: fb_find_best_mode .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Frame Buffer Library .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "FB_FIND_BEST_MODE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Frame Buffer Library" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" fb_find_best_mode \- find best matching videomode .SH "SYNOPSIS" .HP \w'const\ struct\ fb_videomode\ *\ fb_find_best_mode('u .BI "const struct fb_videomode * fb_find_best_mode(const\ struct\ fb_var_screeninfo\ *\ " "var" ", struct\ list_head\ *\ " "head" ");" .SH "ARGUMENTS" .PP \fIvar\fR .RS 4 pointer to struct fb_var_screeninfo .RE .PP \fIhead\fR .RS 4 pointer to struct list_head of modelist .RE .SH "RETURN" .PP struct fb_videomode, NULL if none found .PP IMPORTANT: This function assumes that all modelist entries in info\->modelist are valid\&. .SH "NOTES" .PP 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 .SH "COPYRIGHT" .br