'\" t .\" Title: fb_try_mode .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Frame Buffer Library .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "FB_TRY_MODE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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_try_mode \- test a video mode .SH "SYNOPSIS" .HP \w'int\ fb_try_mode('u .BI "int fb_try_mode(struct\ fb_var_screeninfo\ *\ " "var" ", struct\ fb_info\ *\ " "info" ", const\ struct\ fb_videomode\ *\ " "mode" ", unsigned\ int\ " "bpp" ");" .SH "ARGUMENTS" .PP \fIvar\fR .RS 4 frame buffer user defined part of display .RE .PP \fIinfo\fR .RS 4 frame buffer info structure .RE .PP \fImode\fR .RS 4 frame buffer video mode structure .RE .PP \fIbpp\fR .RS 4 color depth in bits per pixel .RE .SH "DESCRIPTION" .PP Tries a video mode to test it\*(Aqs validity for device \fIinfo\fR\&. .PP Returns 1 on success\&. .SH "COPYRIGHT" .br