'\" t .\" Title: mac_find_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 "MAC_FIND_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" mac_find_mode \- find a video mode .SH "SYNOPSIS" .HP \w'int\ mac_find_mode('u .BI "int mac_find_mode(struct\ fb_var_screeninfo\ *\ " "var" ", struct\ fb_info\ *\ " "info" ", const\ char\ *\ " "mode_option" ", unsigned\ int\ " "default_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_option\fR .RS 4 video mode name (see mac_modedb[]) .RE .PP \fIdefault_bpp\fR .RS 4 default color depth in bits per pixel .RE .SH "DESCRIPTION" .PP Finds a suitable video mode\&. Tries to set mode specified by \fImode_option\fR\&. If the name of the wanted mode begins with \*(Aqmac\*(Aq, the Mac video mode database will be used, otherwise it will fall back to the standard video mode database\&. .SH "NOTE" .PP Function marked as __init and can only be used during system boot\&. .PP Returns error code from fb_find_mode (see fb_find_mode function)\&. .SH "COPYRIGHT" .br